aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-04-13 20:05:56 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-04-13 20:05:56 +0200
commita3963cc8ec3b4e1780aadcbc0e5a7af625bae175 (patch)
tree225954a4c923523ea8dc48a124c31a188db5e596
parentfb6dd77000f1ad6740494269f55a0ff21df5bcf2 (diff)
downloadffmpeg-a3963cc8ec3b4e1780aadcbc0e5a7af625bae175.tar.gz
avcodec/ffv1: use av_freep()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/ffv1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c
index 20d20cce2e..eb613c75b4 100644
--- a/libavcodec/ffv1.c
+++ b/libavcodec/ffv1.c
@@ -148,8 +148,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_freep(&f->slice_context[j]->sample_buffer);
+ av_freep(&f->slice_context[j]);
}
return AVERROR(ENOMEM);
}