[FFmpeg-cvslog] avfilter_unref_buffer: favor av_freep()

Michael Niedermayer git at videolan.org
Sat May 7 00:07:18 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri May  6 23:37:43 2011 +0200| [fa3eddc0110cb237cd57c3e82cafdbcbf798b3a1] | committer: Michael Niedermayer

avfilter_unref_buffer: favor av_freep()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavfilter/avfilter.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index f784cbf..7b4d853 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -75,8 +75,8 @@ void avfilter_unref_buffer(AVFilterBufferRef *ref)
         return;
     if (!(--ref->buf->refcount))
         ref->buf->free(ref->buf);
-    av_free(ref->video);
-    av_free(ref->audio);
+    av_freep(&ref->video);
+    av_freep(&ref->audio);
     av_free(ref);
 }
 



More information about the ffmpeg-cvslog mailing list