From bfb3ed1a9d5dafdc185080fdd88d02ff7221d30a Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 2 Jun 2014 14:48:22 +0200 Subject: [PATCH] avformat/mux: Dont leave stale side data pointers in ff_interleave_add_packet() Signed-off-by: Michael Niedermayer --- libavformat/mux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/mux.c b/libavformat/mux.c index 4edb6529c7..57044f3ab2 100644 --- a/libavformat/mux.c +++ b/libavformat/mux.c @@ -666,6 +666,8 @@ FF_DISABLE_DEPRECATION_WARNINGS FF_ENABLE_DEPRECATION_WARNINGS #endif pkt->buf = NULL; + pkt->side_data = NULL; + pkt->side_data_elems = 0; if ((pkt->flags & AV_PKT_FLAG_UNCODED_FRAME)) { av_assert0(pkt->size == UNCODED_FRAME_PACKET_SIZE); av_assert0(((AVFrame *)pkt->data)->buf);