[Libav-user] decoding/encoding example passes c-priv_data to av_opt_set; shouldn't it just pass c?

2014-12-11 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 have come across a few people repeating this, all stating that the options aren't

Re: [Libav-user] decoding/encoding example passes c-priv_data to av_opt_set; shouldn't it just pass c?

2014-12-11 Thread Carl Eugen Hoyos
Michael Bradshaw mjbshaw@... writes: After I suggest passing the AVCodecContext* instead of the priv_data member, like so:     av_opt_set(c, preset, slow, 0); they report that the options are correctly set. Maybe you should consider to send a patch to the developer mailing list? (I did