aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2023-02-28 20:45:24 +0100
committerLynne <dev@lynne.ee>2023-05-29 00:41:35 +0200
commit21719c29a2f4b881e32511f5ce9c8b92faa7047e (patch)
tree899423af51059b904284a03eb465efb477315546
parent8b2d46ee3d10c5538be5a5339cd3266f39a612ed (diff)
downloadffmpeg-21719c29a2f4b881e32511f5ce9c8b92faa7047e.tar.gz
hevc_ps: expose sps_extension_present_flag
-rw-r--r--libavcodec/hevc_ps.c3
-rw-r--r--libavcodec/hevc_ps.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c
index f106932d43..01b11ed42a 100644
--- a/libavcodec/hevc_ps.c
+++ b/libavcodec/hevc_ps.c
@@ -1087,7 +1087,8 @@ int ff_hevc_parse_sps(HEVCSPS *sps, GetBitContext *gb, unsigned int *sps_id,
if (sps->vui_present)
decode_vui(gb, avctx, apply_defdispwin, sps);
- if (get_bits1(gb)) { // sps_extension_flag
+ sps->sps_extension_present_flag = get_bits1(gb);
+ if (sps->sps_extension_present_flag) {
sps->sps_range_extension_flag = get_bits1(gb);
sps->sps_multilayer_extension_flag = get_bits1(gb);
sps->sps_3d_extension_flag = get_bits1(gb);
diff --git a/libavcodec/hevc_ps.h b/libavcodec/hevc_ps.h
index a9515cdb0e..ef11e51ee7 100644
--- a/libavcodec/hevc_ps.h
+++ b/libavcodec/hevc_ps.h
@@ -217,6 +217,7 @@ typedef struct HEVCSPS {
VUI vui;
PTL ptl;
+ uint8_t sps_extension_present_flag;
uint8_t scaling_list_enable_flag;
ScalingList scaling_list;