doc/examples/muxing: Fix av_frame_make_writable usage
authorSam Hocevar <sam@hocevar.net>
Sun, 23 Oct 2016 22:12:00 +0000 (00:12 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 23 Nov 2016 02:28:04 +0000 (03:28 +0100)
This patch moves the av_frame_make_writable() call from fill_yuv_image
to get_video_frame so that its argument can be the actual frame that
will be sent to the encoder.

This fixes data corruption issues in codecs that keep references on
one or several previous frames.

Signed-off-by: Sam Hocevar <sam@hocevar.net>
Reviewed-by: wm4
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>

No differences found