aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-02-13 20:57:26 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-02-13 20:57:26 +0100
commit4099e4a77d2d49e2308415d92766ad1511f62f9a (patch)
treebc4e24bd8b407505a55e66b3bb0f107ccfe20760
parent4c920ce777a1904202952ea3010fdfb99e002ad3 (diff)
downloadffmpeg-4099e4a77d2d49e2308415d92766ad1511f62f9a.tar.gz
avutil/frame: Free destination qp_table_buf in frame_copy_props()
Fixes memleak Fixes: Ticket4899 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavutil/frame.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/frame.c b/libavutil/frame.c
index c33e4627c1..033f013458 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) {