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_h264.h | |
parent | 293a6e83325a7379c13469193492fa4cb2488785 (diff) | |
download | ffmpeg-c6a63e11092c975b89d824f08682fe31948d3686.tar.gz |
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_h264.h')
-rw-r--r-- | libavcodec/cbs_h264.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/cbs_h264.h b/libavcodec/cbs_h264.h index 2219d9da8d..d953c1f66b 100644 --- a/libavcodec/cbs_h264.h +++ b/libavcodec/cbs_h264.h @@ -421,6 +421,8 @@ typedef struct CodedBitstreamH264Context { // All currently available parameter sets. These are updated when // any parameter set NAL unit is read/written with this context. + AVBufferRef *sps_ref[H264_MAX_SPS_COUNT]; + AVBufferRef *pps_ref[H264_MAX_PPS_COUNT]; H264RawSPS *sps[H264_MAX_SPS_COUNT]; H264RawPPS *pps[H264_MAX_PPS_COUNT]; |