[FFmpeg-devel] [PATCH] mediacodecdec_common: enable refcounting of buffers unconditionally

Anton Khirnov anton at khirnov.net
Wed Sep 28 11:27:49 EEST 2022


Quoting sfan5 (2022-09-18 20:26:48)
> This allows av_mediacodec_release_buffer to be called safely after
> the decoder is closed, this was already the case with delay_flush=1.
> Note that this causes holding onto frames to keep the decoding context
> alive which is generally considered to be the intended behavior
> 
> 
> (resending as my patch got mangled somehow)

The patch looks like it makes sense, but I have no experience with this
code. CCing the maintainer, will push in a few days if nobody objects.

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list