Re: [FFmpeg-devel] [PATCH 1/3] avcodec/cbs: add a new init function

2025-05-24 Thread James Almer
On 5/24/2025 8:08 AM, Andreas Rheinhardt wrote: If something like this were ever needed, it should not be implemented like this; instead ff_cbs_init() should be like avformat_open_input() and allocate a context if none was provided. - Andreas I didn't do that because it would require ff_cbs_in

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/cbs: add a new init function

2025-05-24 Thread Andreas Rheinhardt
James Almer: > And rename the existing one to ff_cbs_alloc(). > This will allow for more versatility when setting options in a module, > allowing > them to be taken into account when calling module specific init functions. > > Signed-off-by: James Almer > --- > libavcodec/apv_decode.c

[FFmpeg-devel] [PATCH 1/3] avcodec/cbs: add a new init function

2025-05-22 Thread James Almer
And rename the existing one to ff_cbs_alloc(). This will allow for more versatility when setting options in a module, allowing them to be taken into account when calling module specific init functions. Signed-off-by: James Almer --- libavcodec/apv_decode.c | 6 +- libavcodec/apv_pa