]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/vqf.c
avutil/frame: Remove deprecated getters and setters
[ffmpeg] / libavformat / vqf.c
index 617a9706f4330b327132f177dc86808bbf77240e..449f4061f7552ae64ab408b28156718e8025d4e7 100644 (file)
@@ -132,6 +132,9 @@ static int vqf_read_header(AVFormatContext *s)
 
         switch(chunk_tag){
         case MKTAG('C','O','M','M'):
+            if (len < 12)
+                return AVERROR_INVALIDDATA;
+
             avio_read(s->pb, comm_chunk, 12);
             st->codecpar->channels = AV_RB32(comm_chunk    ) + 1;
             read_bitrate        = AV_RB32(comm_chunk + 4);