Skip to content
Snippets Groups Projects
Commit 33fefdb4 authored by Christophe Gisquet's avatar Christophe Gisquet Committed by Michael Niedermayer
Browse files

ffmpeg: fix streamcopy with side data


The issue is that, when the main packet data buffer is changed, streamcopy
uses a temporary new packet to store that buffer, frees the old packet, and
replace it with the new packet.

However, in doing so, it forgets about the side data, which gets freed, but
is still needed and referenced. Then, when the packet gets freed again in
the normal code path, it attempts to free its side data which has already
been freed.

Therefore, simply avoid the first free on side data by removing that side
data from the packet.

Fixes ticket #3773.

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 6c1ee1a1
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment