• Martin Storsjö's avatar
    libavformat: Use avcodec_copy_context for chained muxers · 1338dc08
    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>
    1338dc08
movenchint.c 16.4 KB