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

2023-09-28 Thread Anton Khirnov
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 > --- > libavcodec/avcodec.c | 3 ++- > libavcodec/get_buffer.c| 44 ++--

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

2023-09-19 Thread Andreas Rheinhardt
Avoids allocations and frees and error checks for said allocations; also avoids a few indirections and casts. Signed-off-by: Andreas Rheinhardt --- libavcodec/avcodec.c | 3 ++- libavcodec/get_buffer.c| 44 ++ libavcodec/internal.h | 2 +- lib