ffv1: Pass correct pointers to av_free()
authorDiego Biurrun <diego@biurrun.de>
Mon, 20 Apr 2015 11:58:45 +0000 (13:58 +0200)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Mon, 20 Apr 2015 13:59:40 +0000 (14:59 +0100)
Bug-Id: CID 1295124

libavcodec/ffv1.c

index 689cd32..0836d42 100644 (file)
@@ -226,8 +226,8 @@ av_cold int ffv1_init_slice_contexts(FFV1Context *f)
 
 memfail:
     for (j = 0; j < i; j++) {
-        av_free(&f->slice_context[j]->sample_buffer);
-        av_free(&f->slice_context[j]);
+        av_free(f->slice_context[j]->sample_buffer);
+        av_free(f->slice_context[j]);
     }
     return AVERROR(ENOMEM);
 }