You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
mux: Do not leave stale side data pointers in ff_interleave_add_packet()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
This commit is contained in:
committed by
Vittorio Giovara
parent
6c8c7c2462
commit
e0010bb91f
@@ -419,6 +419,8 @@ FF_DISABLE_DEPRECATION_WARNINGS
|
|||||||
FF_ENABLE_DEPRECATION_WARNINGS
|
FF_ENABLE_DEPRECATION_WARNINGS
|
||||||
#endif
|
#endif
|
||||||
pkt->buf = NULL;
|
pkt->buf = NULL;
|
||||||
|
pkt->side_data = NULL;
|
||||||
|
pkt->side_data_elems = 0;
|
||||||
// Duplicate the packet if it uses non-allocated memory
|
// Duplicate the packet if it uses non-allocated memory
|
||||||
if ((ret = av_dup_packet(&this_pktl->pkt)) < 0) {
|
if ((ret = av_dup_packet(&this_pktl->pkt)) < 0) {
|
||||||
av_free(this_pktl);
|
av_free(this_pktl);
|
||||||
|
Reference in New Issue
Block a user