diff options
author | Andreas Rheinhardt <[email protected]> | 2022-08-04 05:18:58 +0200 |
---|---|---|
committer | Andreas Rheinhardt <[email protected]> | 2023-10-07 22:34:20 +0200 |
commit | 787351a68e9f3cbe46c3dcf6d0d9b001bcd139b3 (patch) | |
tree | bce539cf25bdf3a277be5c2a1dd7c9b438608e64 /libavcodec/cbs_mpeg2.h | |
parent | 78c9ed26b6e83ea29b55420c2c88dc1860810042 (diff) |
avcodec/h264_ps: Use RefStruct API for SPS/PPS
Avoids allocations and error checks for these allocations;
e.g. syncing buffers across threads can't fail any more
and needn't be checked. It also avoids having to keep
H264ParamSets.pps and H264ParamSets.pps_ref and PPS.sps
and PPS.sps_ref in sync and gets rid of casts and indirections.
(The removal of these checks and the syncing code even more
than offset the additional code for RefStruct.)
Reviewed-by: Anton Khirnov <[email protected]>
Signed-off-by: Andreas Rheinhardt <[email protected]>
Diffstat (limited to 'libavcodec/cbs_mpeg2.h')
0 files changed, 0 insertions, 0 deletions