[FFmpeg-devel] [PATCH] lavc: deprecate AV_CODEC_FLAG_DROPCHANGED

Gyan Doshi ffmpeg at gyani.pro
Wed Jul 12 16:14:07 EEST 2023



On 2023-07-12 06:12 pm, James Almer wrote:
> On 7/9/2023 9:57 AM, Anton Khirnov wrote:
>> This decoding flag makes decoders drop all frames after a parameter
>> change, but what exactly constitutes a parameter change is not well
>> defined and will typically depend on the exact use case.
>> This functionality then does not belong in libavcodec, but rather in
>> user code

NAK.

The applicable parameters are well defined as set by the implementation.
They are whatever leads to a change in the size of the decoded frame 
payload or the layout/semantics of the elemental unit in a decoded 
frame, so width, height, pixel format, sample format/size, interleaving..etc

Regards,
Gyan



More information about the ffmpeg-devel mailing list