[FFmpeg-devel] [PATCH 1/4] avcodec: move avcodec_flush_buffers from decode.c to utils.c

James Almer jamrial at gmail.com
Tue Mar 10 20:14:47 EET 2020


On 3/10/2020 3:03 PM, Anton Khirnov wrote:
> Quoting James Almer (2020-02-27 19:01:59)
>> It's not a decoding exclusive function.
> 
> How come? The doxy for it says
> 'Reset the internal decoder state / flush internal buffers.'

It touches some fields used by encode.c, like draining and
buffer_pkt_valid (the latter which admittedly will be gone after this
patchset, but replaced by others), and there's at least one encoder
implementing an AVCodec.flush() callback.

And doesn't the slash in that doxy imply one or the other?


More information about the ffmpeg-devel mailing list