diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-03-04 19:39:45 +0100 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-03-10 10:43:14 +0100 |
commit | b52bd2a4ab99223eee39f0100a1395e3c98a09ad (patch) | |
tree | a3275d6b56162b657932bd1c19065f6ad1d8333e /libavformat/dv.c | |
parent | f7b57add8ee0cb234617ca1c86e2d334b50fdc38 (diff) | |
download | ffmpeg-b52bd2a4ab99223eee39f0100a1395e3c98a09ad.tar.gz |
DV demuxer: Stricter check for avio_read result.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavformat/dv.c')
-rw-r--r-- | libavformat/dv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/dv.c b/libavformat/dv.c index 1200dda45c..81a0e47ade 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); |