Skip to content
Snippets Groups Projects
Commit 3115550a authored by Sam Hocevar's avatar Sam Hocevar Committed by Michael Niedermayer
Browse files

doc/examples/muxing: Fix av_frame_make_writable usage


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: default avatarSam Hocevar <sam@hocevar.net>
Reviewed-by: wm4
Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
parent 69f7dd35
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment