« Previous | Next » 

Revision 173f19be

Parent e9266a2b
Child 4ed68fdf

Added by Martin Storsjö over 10 years ago

libavformat: Use avcodec_copy_context for chained muxers

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: Ronald S. Bultje <>
(cherry picked from commit 1338dc082354b87c0e26f7f2ab09df5964b7f993)


  • added
  • modified
  • copied
  • renamed
  • deleted

View differences