[FFmpeg-cvslog] avformat/dfa: use avio_feof()

Paul B Mahol git at videolan.org
Sat Aug 30 17:51:29 CEST 2014


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Aug 24 14:28:02 2014 +0000| [bd6f1458207788254d0d160052d9b0113e9c4ec2] | committer: Paul B Mahol

avformat/dfa: use avio_feof()

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bd6f1458207788254d0d160052d9b0113e9c4ec2
---

 libavformat/dfa.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/dfa.c b/libavformat/dfa.c
index dfa0590..450bc21 100644
--- a/libavformat/dfa.c
+++ b/libavformat/dfa.c
@@ -84,12 +84,12 @@ static int dfa_read_packet(AVFormatContext *s, AVPacket *pkt)
     uint32_t frame_size;
     int ret, first = 1;
 
-    if (pb->eof_reached)
+    if (avio_feof(pb))
         return AVERROR_EOF;
 
     if (av_get_packet(pb, pkt, 12) != 12)
         return AVERROR(EIO);
-    while (!pb->eof_reached) {
+    while (!avio_feof(pb)) {
         if (!first) {
             ret = av_append_packet(pb, pkt, 12);
             if (ret < 0) {



More information about the ffmpeg-cvslog mailing list