diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-08-04 16:21:03 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-10-07 22:35:22 +0200 |
commit | f8252d6ce3ff7f306f7f7689c8c1c0c02126c70d (patch) | |
tree | e37bed3b2eea908606c9950c631bb988708b4a73 /libavcodec/vp9shared.h | |
parent | 3ba4f9c21e8bd78386738324d8767d74d75eec53 (diff) | |
download | ffmpeg-f8252d6ce3ff7f306f7f7689c8c1c0c02126c70d.tar.gz |
avcodec/decode: Use RefStruct API for hwaccel_picture_private
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().
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Reviewed-by: Lynne <dev@lynne.ee>
Tested-by: Lynne <dev@lynne.ee>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/vp9shared.h')
-rw-r--r-- | libavcodec/vp9shared.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/vp9shared.h b/libavcodec/vp9shared.h index 543a496df8..e54f23544e 100644 --- a/libavcodec/vp9shared.h +++ b/libavcodec/vp9shared.h @@ -69,8 +69,7 @@ typedef struct VP9Frame { VP9mvrefPair *mv; int uses_2pass; - AVBufferRef *hwaccel_priv_buf; - void *hwaccel_picture_private; + void *hwaccel_picture_private; ///< RefStruct reference } VP9Frame; enum BlockLevel { |