• Martin Storsjö's avatar
    libavformat: Use avcodec_copy_context for chained muxers · 173f19be
    Martin Storsjö authored
    This avoids having the chained AVStream->codec point to the same
    AVCodecContext owned by the outer AVStream. The downside is that
    changes to the AVCodecContext made after calling av_write_header
    cannot be detected automatically within the chained muxer.
    
    This avoids having to manually unlink the chained AVStream->codec
    by setting it to null before freeing the chained muxer via generic
    freeing functions.
    Signed-off-by: 's avatarRonald S. Bultje <rsbultje@gmail.com>
    (cherry picked from commit 1338dc08)
    173f19be
movenchint.c 16.4 KB