[FFmpeg-devel] [PATCH 03/42] avcodec/get_buffer: Use RefStruct API for FramePool

Anton Khirnov anton at khirnov.net
Thu Sep 28 15:36:05 EEST 2023


Quoting Andreas Rheinhardt (2023-09-19 21:56:55)
> Avoids allocations and frees and error checks for said allocations;
> also avoids a few indirections and casts.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
>  libavcodec/avcodec.c       |  3 ++-
>  libavcodec/get_buffer.c    | 44 ++++++++++----------------------------
>  libavcodec/internal.h      |  2 +-
>  libavcodec/pthread_frame.c |  7 +++---
>  4 files changed, 17 insertions(+), 39 deletions(-)

LGTM

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list