diff options
author | James Almer <jamrial@gmail.com> | 2018-05-08 20:09:28 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2018-05-09 11:14:14 -0300 |
commit | c6a63e11092c975b89d824f08682fe31948d3686 (patch) | |
tree | 136bf7a4a2da490802404b5ff7e8d37d070d554f /libavcodec/cbs_h265.h | |
parent | 293a6e83325a7379c13469193492fa4cb2488785 (diff) |
avcodec/cbs_h2645: use AVBufferRef to store list of active parameter sets
Removes unnecessary data copies, and partially fixes potential issues
with dangling references held in said lists.
Reviewed-by: Mark Thompson <sw@jkqxz.net>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/cbs_h265.h')
-rw-r--r-- | libavcodec/cbs_h265.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/cbs_h265.h b/libavcodec/cbs_h265.h index 33e71fc234..6d02979a17 100644 --- a/libavcodec/cbs_h265.h +++ b/libavcodec/cbs_h265.h @@ -523,6 +523,9 @@ typedef struct CodedBitstreamH265Context { // All currently available parameter sets. These are updated when // any parameter set NAL unit is read/written with this context. + AVBufferRef *vps_ref[HEVC_MAX_VPS_COUNT]; + AVBufferRef *sps_ref[HEVC_MAX_SPS_COUNT]; + AVBufferRef *pps_ref[HEVC_MAX_PPS_COUNT]; H265RawVPS *vps[HEVC_MAX_VPS_COUNT]; H265RawSPS *sps[HEVC_MAX_SPS_COUNT]; H265RawPPS *pps[HEVC_MAX_PPS_COUNT]; |