[FFmpeg-devel] [PATCH 16/42] avcodec/nvdec: Use RefStruct API for decoder_ref
Anton Khirnov
anton at khirnov.net
Mon Oct 2 13:58:57 EEST 2023
Quoting Andreas Rheinhardt (2023-09-19 21:57:08)
> Avoids allocations and error checks as well as the boilerplate
> code for creating an AVBuffer with a custom free callback.
> Also increases type safety.
>
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
> libavcodec/nvdec.c | 50 ++++++++++++++++++----------------------------
> libavcodec/nvdec.h | 4 ++--
> 2 files changed, 21 insertions(+), 33 deletions(-)
Looks ok.
--
Anton Khirnov
More information about the ffmpeg-devel
mailing list