[FFmpeg-devel] [PATCH 15/42] avcodec/pthread_frame: Use RefStruct API for ThreadFrame.progress

Anton Khirnov anton at khirnov.net
Mon Oct 2 14:01:29 EEST 2023


Quoting Andreas Rheinhardt (2023-09-19 21:57:07)
> Avoids allocations and error checks and allows to remove
> cleanup code for earlier allocations. Also avoids casts
> and indirections.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
> I actually intend to remove the ThreadFrame API in the not-so
> long-term.
> 
>  libavcodec/h264_mb.c       |  4 ++--
>  libavcodec/pthread_frame.c | 23 ++++++++++++-----------
>  libavcodec/threadframe.h   |  4 +---
>  libavcodec/utils.c         | 14 ++++----------
>  4 files changed, 19 insertions(+), 26 deletions(-)

LGTM

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list