Re: [FFmpeg-devel] [PATCH] doc: fix option setting for encoding example

2015-01-13 Thread Nicolas George
Le quartidi 24 nivôse, an CCXXIII, Michael Bradshaw a écrit : > 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 p

[FFmpeg-devel] [PATCH] doc: fix option setting for encoding example

2015-01-13 Thread Michael Bradshaw
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