[FFmpeg-cvslog] avcodec/ffv1: use av_freep()

Michael Niedermayer git at videolan.org
Mon Apr 13 20:19:33 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Apr 13 20:05:56 2015 +0200| [a3963cc8ec3b4e1780aadcbc0e5a7af625bae175] | committer: Michael Niedermayer

avcodec/ffv1: use av_freep()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a3963cc8ec3b4e1780aadcbc0e5a7af625bae175
---

 libavcodec/ffv1.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c
index 20d20cc..eb613c7 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);
 }



More information about the ffmpeg-cvslog mailing list