]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/westwood.c
Fix AMR block length for no data mode when muxing mov.
[ffmpeg] / libavformat / westwood.c
index 7712865e36e28b24cce2621974d7d1ae221fa72b..6b5fd51141b3ce41c5e38ce34bfe1fef2fcea0cf 100644 (file)
@@ -277,10 +277,8 @@ static int wsvqa_read_header(AVFormatContext *s,
     /* there are 0 or more chunks before the FINF chunk; iterate until
      * FINF has been skipped and the file will be ready to be demuxed */
     do {
-        if (avio_read(pb, scratch, VQA_PREAMBLE_SIZE) != VQA_PREAMBLE_SIZE) {
-            av_free(st->codec->extradata);
+        if (avio_read(pb, scratch, VQA_PREAMBLE_SIZE) != VQA_PREAMBLE_SIZE)
             return AVERROR(EIO);
-        }
         chunk_tag = AV_RB32(&scratch[0]);
         chunk_size = AV_RB32(&scratch[4]);