[FFmpeg-cvslog] DV demuxer: Stricter check for avio_read result.

Reimar Döffinger git at videolan.org
Sat Mar 10 10:45:32 CET 2012


ffmpeg | branch: master | Reimar Döffinger <Reimar.Doeffinger at gmx.de> | Sun Mar  4 19:39:45 2012 +0100| [b52bd2a4ab99223eee39f0100a1395e3c98a09ad] | committer: Reimar Döffinger

DV demuxer: Stricter check for avio_read result.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>

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

 libavformat/dv.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/dv.c b/libavformat/dv.c
index 1200dda..81a0e47 100644
--- a/libavformat/dv.c
+++ b/libavformat/dv.c
@@ -495,7 +495,7 @@ static int dv_read_header(AVFormatContext *s)
     }
     AV_WB32(c->buf, state);
 
-    if (avio_read(s->pb, c->buf + 4, DV_PROFILE_BYTES - 4) <= 0 ||
+    if (avio_read(s->pb, c->buf + 4, DV_PROFILE_BYTES - 4) != DV_PROFILE_BYTES - 4 ||
         avio_seek(s->pb, -DV_PROFILE_BYTES, SEEK_CUR) < 0)
         return AVERROR(EIO);
 



More information about the ffmpeg-cvslog mailing list