summaryrefslogtreecommitdiff
path: root/libavformat/tee.c
diff options
context:
space:
mode:
authorNicolas George <george@nsup.org>2015-10-10 15:19:43 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-12-13 09:41:41 +0100
commit1acc90eaa54ad82a21474ed759b8ed3a0f3d482d (patch)
tree720611c76849c387c457fb5547b61ab1ad8cec52 /libavformat/tee.c
parentc62d1780fff8a1997dd1707bbc557efc8fe41e3c (diff)
lavf/tee: fix side data double free.
Similar to 33fefdb44. Fix trac ticket #4921. Signed-off-by: Nicolas George <george@nsup.org> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/tee.c')
-rw-r--r--libavformat/tee.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/tee.c b/libavformat/tee.c
index af52a490c6..821d23d407 100644
--- a/libavformat/tee.c
+++ b/libavformat/tee.c
@@ -424,6 +424,8 @@ static int filter_packet(void *log_ctx, AVPacket *pkt,
}
if (ret > 0) {
+ pkt->side_data = NULL;
+ pkt->side_data_elems = 0;
av_packet_unref(pkt);
new_pkt.buf = av_buffer_create(new_pkt.data, new_pkt.size,
av_buffer_default_free, NULL, 0);