Commit 1acc90ea authored by Nicolas George's avatar Nicolas George Committed by Michael Niedermayer

lavf/tee: fix side data double free.

Similar to 33fefdb4.
Fix trac ticket #4921.
Signed-off-by: 's avatarNicolas George <george@nsup.org>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent c62d1780
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment