Re: [FFmpeg-devel] [PATCH 12/42] avcodec/decode: Use RefStruct API for hwaccel_picture_private

2023-10-02 Thread Lynne
Sep 19, 2023, 21:58 by andreas.rheinha...@outlook.com: > Avoids allocations and therefore error checks: Syncing > hwaccel_picture_private across threads can't fail any more. > Also gets rid of an unnecessary pointer in structures and > in the parameter list of ff_hwaccel_frame_priv_alloc(). > >

Re: [FFmpeg-devel] [PATCH 12/42] avcodec/decode: Use RefStruct API for hwaccel_picture_private

2023-10-02 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2023-09-19 21:57:04) > diff --git a/libavcodec/h264dec.h b/libavcodec/h264dec.h > index 513856749a..7436e0a54f 100644 > --- a/libavcodec/h264dec.h > +++ b/libavcodec/h264dec.h > @@ -117,7 +117,6 @@ typedef struct H264Picture { > AVBufferRef *mb_type_buf; >

[FFmpeg-devel] [PATCH 12/42] avcodec/decode: Use RefStruct API for hwaccel_picture_private

2023-09-19 Thread Andreas Rheinhardt
Avoids allocations and therefore error checks: Syncing hwaccel_picture_private across threads can't fail any more. Also gets rid of an unnecessary pointer in structures and in the parameter list of ff_hwaccel_frame_priv_alloc(). Signed-off-by: Andreas Rheinhardt --- libavcodec/av1dec.c