]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/dv.c
Add forgotten avio-direct reference file.
[ffmpeg] / libavformat / dv.c
index 1200dda45cd7f790a55b4abe604a38e655515ccd..81a0e47adedc61f2da215b28d1c79efb5967a8bc 100644 (file)
@@ -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);