[FFmpeg-cvslog] indeo3: release buffer in indeo3_decode_end()

Stefano Sabatini git at videolan.org
Fri May 20 10:10:05 CEST 2011


ffmpeg | branch: master | Stefano Sabatini <stefano.sabatini-lala at poste.it> | Tue May 17 13:01:21 2011 +0200| [7f58eb3c2b552f232905731b5944307e72c590a0] | committer: Stefano Sabatini

indeo3: release buffer in indeo3_decode_end()

Fix leak.

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

 libavcodec/indeo3.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/libavcodec/indeo3.c b/libavcodec/indeo3.c
index 7a648cd..b74fcf7 100644
--- a/libavcodec/indeo3.c
+++ b/libavcodec/indeo3.c
@@ -1137,6 +1137,9 @@ static av_cold int indeo3_decode_end(AVCodecContext *avctx)
 
     iv_free_func(s);
 
+    if (s->frame.data[0])
+        avctx->release_buffer(avctx, &s->frame);
+
     return 0;
 }
 



More information about the ffmpeg-cvslog mailing list