[FFmpeg-cvslog] avutil/frame: Free destination qp_table_buf in frame_copy_props()
Michael Niedermayer
git at videolan.org
Sat Feb 13 21:08:25 CET 2016
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sat Feb 13 20:57:26 2016 +0100| [4099e4a77d2d49e2308415d92766ad1511f62f9a] | committer: Michael Niedermayer
avutil/frame: Free destination qp_table_buf in frame_copy_props()
Fixes memleak
Fixes: Ticket4899
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4099e4a77d2d49e2308415d92766ad1511f62f9a
---
libavutil/frame.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavutil/frame.c b/libavutil/frame.c
index c33e462..033f013 100644
--- a/libavutil/frame.c
+++ b/libavutil/frame.c
@@ -357,6 +357,7 @@ FF_DISABLE_DEPRECATION_WARNINGS
dst->qscale_table = NULL;
dst->qstride = 0;
dst->qscale_type = 0;
+ av_buffer_unref(&dst->qp_table_buf);
if (src->qp_table_buf) {
dst->qp_table_buf = av_buffer_ref(src->qp_table_buf);
if (dst->qp_table_buf) {
More information about the ffmpeg-cvslog
mailing list