mux: Do not leave stale side data pointers in ff_interleave_add_packet()
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 1 May 2015 22:55:42 +0000 (23:55 +0100)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Wed, 6 May 2015 14:01:35 +0000 (15:01 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
libavformat/mux.c

index 503241f..25d69d5 100644 (file)
@@ -419,6 +419,8 @@ FF_DISABLE_DEPRECATION_WARNINGS
 FF_ENABLE_DEPRECATION_WARNINGS
 #endif
     pkt->buf       = NULL;
+    pkt->side_data = NULL;
+    pkt->side_data_elems = 0;
     // Duplicate the packet if it uses non-allocated memory
     if ((ret = av_dup_packet(&this_pktl->pkt)) < 0) {
         av_free(this_pktl);