Commit e0010bb9 authored by Michael Niedermayer's avatar Michael Niedermayer Committed by Vittorio Giovara

mux: Do not leave stale side data pointers in ff_interleave_add_packet()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
Signed-off-by: 's avatarVittorio Giovara <vittorio.giovara@gmail.com>
parent 6c8c7c24
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment