[FFmpeg-devel] [PATCH 18/42] avcodec/h264dec: Use RefStruct-pool API instead of AVBufferPool API
Anton Khirnov
anton at khirnov.net
Wed Oct 4 17:07:11 EEST 2023
Quoting Andreas Rheinhardt (2023-09-19 21:57:10)
> It involves less allocations and therefore has the nice property
> that deriving a reference from a reference can't fail.
> This allows for considerable simplifications in
> ff_h264_(ref|replace)_picture().
> Switching to the RefStruct API also allows to make H264Picture
> smaller, because some AVBufferRef* pointers could be removed
> without replacement.
>
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
> libavcodec/h264_picture.c | 72 +++++++++++----------------------------
> libavcodec/h264_slice.c | 44 ++++++++++++------------
> libavcodec/h264dec.c | 19 ++++++-----
> libavcodec/h264dec.h | 23 ++++++-------
> 4 files changed, 62 insertions(+), 96 deletions(-)
LGTM
--
Anton Khirnov
More information about the ffmpeg-devel
mailing list