[FFmpeg-cvslog] codec_release_buffer: fix handling of non user buffers

Michael Niedermayer git at videolan.org
Fri Jun 22 23:53:53 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Jun 22 23:50:27 2012 +0200| [c13e490dce1a66d79e1f053d8a38fb9b2eb53267] | committer: Michael Niedermayer

codec_release_buffer: fix handling of non user buffers

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

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

 cmdutils.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/cmdutils.c b/cmdutils.c
index bce87a6..557e1a6 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -1343,8 +1343,10 @@ void codec_release_buffer(AVCodecContext *s, AVFrame *frame)
     FrameBuffer *buf = frame->opaque;
     int i;
 
-    if(frame->type!=FF_BUFFER_TYPE_USER)
+    if(frame->type!=FF_BUFFER_TYPE_USER) {
         avcodec_default_release_buffer(s, frame);
+        return;
+    }
 
     for (i = 0; i < FF_ARRAY_ELEMS(frame->data); i++)
         frame->data[i] = NULL;



More information about the ffmpeg-cvslog mailing list