bit: return AVERROR_EOF on eof.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2011-09-25 05:05:03 +02:00
parent a2f27818b5
commit fc9d6035c3

View File

@ -68,7 +68,7 @@ static int read_packet(AVFormatContext *s,
int i, j, ret;
if(url_feof(pb))
return AVERROR(EIO);
return AVERROR_EOF;
sync = get_le16(pb); // sync word
packet_size = get_le16(pb) / 8;