[FFmpeg-cvslog] smjpegdec: use url_feof()
Paul B Mahol
git at videolan.org
Sat Oct 13 16:17:54 CEST 2012
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Oct 13 14:09:20 2012 +0000| [6571833d1a54a0be996481970de09487aa5a55d9] | committer: Paul B Mahol
smjpegdec: use url_feof()
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6571833d1a54a0be996481970de09487aa5a55d9
---
libavformat/smjpegdec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/smjpegdec.c b/libavformat/smjpegdec.c
index 9fcefe7..0cd993f 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);
More information about the ffmpeg-cvslog
mailing list