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>
pull/166/head
Nicolas George 9 years ago committed by Michael Niedermayer
parent c62d1780ff
commit 1acc90eaa5
  1. 2
      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);

Loading…
Cancel
Save