[FFmpeg-devel] [PATCH] pthread_frame: uninit the hwaccel of each frame thread
Anton Khirnov
anton at khirnov.net
Thu Jun 15 21:26:29 EEST 2023
Quoting Lynne (2023-06-13 04:11:35)
> The issue is that with a threadsafe hwaccel and multiple enabled
> frame threads, hwaccel->uninit() is never called.
> Previously, the function was guaranteed to never have any threads
> with hwaccel contexts, so it never bothered to uninit it.
>
> Patch attached.
Maybe add a note that this only does something for threadsafe hwaccels,
since otherwise hwaccel state is always cleared here.
Otherwise looks good assuming it was tested with a leak checker.
--
Anton Khirnov
More information about the ffmpeg-devel
mailing list