]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mpc8.c
avformat/hdsenc: removed unused check of avformat_free_context
[ffmpeg] / libavformat / mpc8.c
index 79e5f6a9ab648873fa4c9a883b50befb8ce8aa46..e452cd6878f1fe5c71441ad3a990e28f0411abfc 100644 (file)
@@ -73,7 +73,7 @@ static inline int64_t bs_get_v(const uint8_t **bs)
     return v - br;
 }
 
-static int mpc8_probe(AVProbeData *p)
+static int mpc8_probe(const AVProbeData *p)
 {
     const uint8_t *bs = p->buf + 4;
     const uint8_t *bs_end = bs + p->buf_size;
@@ -168,6 +168,7 @@ static void mpc8_parse_seektable(AVFormatContext *s, int64_t off)
     size = gb_get_v(&gb);
     if(size > UINT_MAX/4 || size > c->samples/1152){
         av_log(s, AV_LOG_ERROR, "Seek table is too big\n");
+        av_free(buf);
         return;
     }
     seekd = get_bits(&gb, 4);