[libav-devel] [RFC/PATCH 11/11] qsvdec: postpone initializing the decoder until after get_buffer()
lu_zero at gentoo.org
Wed Aug 12 15:33:09 CEST 2015
On 12/08/15 15:07, Anton Khirnov wrote:
> This allows use to export the required frame pool size to the caller in
> get_buffer(), before the decoder is initialized.
> This is an API break, since previously get_buffer() was always called after
> MFXVideoDECODE_Init() (and therefore after user's custom frame allocation
> callback invoked by libmfx), now it's called before.
> Suggestions how to do it better are welcome.
The alternative is using av_opt_set to set it or reconfigure if it changes.
I'm not against this patch since I'm not sure which of the other ways
More information about the libav-devel