summaryrefslogtreecommitdiff
path: root/libavformat/mux.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-02 14:48:22 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-02 14:48:22 +0200
commitbfb3ed1a9d5dafdc185080fdd88d02ff7221d30a (patch)
treec9f8c3f2eef5aecb01b4a758aaced15d51d455bb /libavformat/mux.c
parent74ece44373a90f52cc134351c5dbcb596a422bce (diff)
avformat/mux: Dont leave stale side data pointers in ff_interleave_add_packet()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mux.c')
-rw-r--r--libavformat/mux.c2
1 files changed, 2 insertions, 0 deletions
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);