diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-10-13 14:09:20 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-10-13 14:15:58 +0000 |
commit | 6571833d1a54a0be996481970de09487aa5a55d9 (patch) | |
tree | 926971611f7f1bf613caaf4b2931af558e062439 /libavformat/smjpegdec.c | |
parent | 18884f159b617208dd69fb35fa127f4fdedf5ba1 (diff) | |
download | ffmpeg-6571833d1a54a0be996481970de09487aa5a55d9.tar.gz |
smjpegdec: use url_feof()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/smjpegdec.c')
-rw-r--r-- | libavformat/smjpegdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/smjpegdec.c b/libavformat/smjpegdec.c index 9fcefe782e..0cd993f8eb 100644 --- a/libavformat/smjpegdec.c +++ b/libavformat/smjpegdec.c @@ -56,7 +56,7 @@ static int smjpeg_read_header(AVFormatContext *s) duration = avio_rb32(pb); // in msec - while (!pb->eof_reached) { + while (!url_feof(pb)) { htype = avio_rl32(pb); switch (htype) { case SMJPEG_TXT: @@ -139,7 +139,7 @@ static int smjpeg_read_packet(AVFormatContext *s, AVPacket *pkt) int64_t pos; int ret; - if (s->pb->eof_reached) + if (url_feof(s->pb)) return AVERROR_EOF; pos = avio_tell(s->pb); dtype = avio_rl32(s->pb); |