aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/hevc_ps.c
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2022-12-07 12:49:45 +0100
committerLynne <dev@lynne.ee>2023-05-29 00:41:32 +0200
commit4e1f3ab1849616a52131a875cb772aef8312758f (patch)
tree7cd63ec6fd0d1c8b23130e7530a5030f52e4ec2f /libavcodec/hevc_ps.c
parentd0b02c3affad7eba83f0eba91310e2216cf02e2b (diff)
downloadffmpeg-4e1f3ab1849616a52131a875cb772aef8312758f.tar.gz
hevc_ps: expose pps_extension_present_flag
Diffstat (limited to 'libavcodec/hevc_ps.c')
-rw-r--r--libavcodec/hevc_ps.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c
index 581c9293ab..61f4f7c1fc 100644
--- a/libavcodec/hevc_ps.c
+++ b/libavcodec/hevc_ps.c
@@ -1956,7 +1956,8 @@ int ff_hevc_decode_nal_pps(GetBitContext *gb, AVCodecContext *avctx,
pps->slice_header_extension_present_flag = get_bits1(gb);
- if (get_bits1(gb)) { // pps_extension_present_flag
+ pps->pps_extension_present_flag = get_bits1(gb);
+ if (pps->pps_extension_present_flag) {
pps->pps_range_extensions_flag = get_bits1(gb);
pps->pps_multilayer_extension_flag = get_bits1(gb);
pps->pps_3d_extension_flag = get_bits1(gb);