• Reimar Döffinger's avatar
    Fix leaking of side data. · c4ba5198
    Reimar Döffinger authored
    While we correctly "register" the side data when we split it,
    the application (in this case FFmpeg) might not update the
    AVPacket pool it uses to finally free the packet, thus
    causing a leak.
    This also makes the av_dup_packet unnecessary which could
    cause an even worse leak in this situation.
    Also change the code to not modify the user-provide AVPacket at all.
    Signed-off-by: 's avatarReimar Döffinger <Reimar.Doeffinger@gmx.de>
    c4ba5198
avcodec.h 155 KB