1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-29 22:00:58 +02:00

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; int i, j, ret;
if(url_feof(pb)) if(url_feof(pb))
return AVERROR(EIO); return AVERROR_EOF;
sync = get_le16(pb); // sync word sync = get_le16(pb); // sync word
packet_size = get_le16(pb) / 8; packet_size = get_le16(pb) / 8;