aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vp9shared.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-08-04 16:21:03 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-10-07 22:35:22 +0200
commitf8252d6ce3ff7f306f7f7689c8c1c0c02126c70d (patch)
treee37bed3b2eea908606c9950c631bb988708b4a73 /libavcodec/vp9shared.h
parent3ba4f9c21e8bd78386738324d8767d74d75eec53 (diff)
downloadffmpeg-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.h3
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 {