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>
Tue, 19 May 2015 11:14:18 +0000 (12:14 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
libavformat/mux.c

index df4f57a..d4492d1 100644 (file)
@@ -400,6 +400,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);