diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-08-04 17:33:29 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-10-07 22:35:56 +0200 |
commit | 452089ee23312ceab28baf9f83fb7dff472e7d82 (patch) | |
tree | af8ca737a93d89a68138d1392e518dc435c74435 /libavcodec/hevcdec.h | |
parent | 6695c0af0e5431e50c5059ad01862e399af6607d (diff) |
avcodec/hevcdec: Use RefStruct API for RefPicListTab buffer
Given that the RefStruct API relies on the user to know
the size of the objects and does not provide a way to get it,
we need to store the number of elements allocated ourselves;
but this is actually better than deriving it from the size
in bytes.
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/hevcdec.h')
-rw-r--r-- | libavcodec/hevcdec.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/hevcdec.h b/libavcodec/hevcdec.h index 187515eba4..3ee8bd4334 100644 --- a/libavcodec/hevcdec.h +++ b/libavcodec/hevcdec.h @@ -417,7 +417,8 @@ typedef struct HEVCFrame { AVBufferRef *tab_mvf_buf; AVBufferRef *rpl_tab_buf; - AVBufferRef *rpl_buf; + RefPicListTab *rpl; ///< RefStruct reference + int nb_rpl_elems; void *hwaccel_picture_private; ///< RefStruct reference |