Re: [FFmpeg-devel] [PATCH 16/42] avcodec/nvdec: Use RefStruct API for decoder_ref

2023-10-02 Thread Anton Khirnov
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 > --- > libavcodec/nvdec.c | 50 ++---

[FFmpeg-devel] [PATCH 16/42] avcodec/nvdec: Use RefStruct API for decoder_ref

2023-09-19 Thread Andreas Rheinhardt
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 --- libavcodec/nvdec.c | 50 ++ libavcodec/nvdec.h | 4 ++-- 2 file