In the encoding/decoding example[1], in the video_encode_example()
function, av_opt_set() is used to set the option "preset" to "slow" (here,
c is a AVCodecContext*):

    av_opt_set(c->priv_data, "preset", "slow", 0);

I presume this is wrong to use priv_data, and instead the codec context
should be passed. Attached patch passes the codec context instead of
priv_data.

[1]: https://ffmpeg.org/pipermail/libav-user/2014-December/007689.html

Attachment: 0001-doc-fix-option-setting-for-encoding-example.patch
Description: Binary data

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to