diff options
author | Lynne <dev@lynne.ee> | 2022-12-07 06:42:44 +0100 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2023-05-29 00:41:31 +0200 |
commit | d0b02c3affad7eba83f0eba91310e2216cf02e2b (patch) | |
tree | b73393105cbb11d2f5b52c65a33613478478e797 | |
parent | 3bc866159ce105ab1ec35b702d92fda26fefe7df (diff) | |
download | ffmpeg-d0b02c3affad7eba83f0eba91310e2216cf02e2b.tar.gz |
hevc_ps: expose vps_id
-rw-r--r-- | libavcodec/hevc_ps.c | 2 | ||||
-rw-r--r-- | libavcodec/hevc_ps.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c index 73f90b4831..581c9293ab 100644 --- a/libavcodec/hevc_ps.c +++ b/libavcodec/hevc_ps.c @@ -464,7 +464,7 @@ int ff_hevc_decode_nal_vps(GetBitContext *gb, AVCodecContext *avctx, } memcpy(vps->data, gb->buffer, vps->data_size); - vps_id = get_bits(gb, 4); + vps_id = vps->vps_id = get_bits(gb, 4); if (get_bits(gb, 2) != 3) { // vps_reserved_three_2bits av_log(avctx, AV_LOG_ERROR, "vps_reserved_three_2bits is not three\n"); diff --git a/libavcodec/hevc_ps.h b/libavcodec/hevc_ps.h index e461b48943..eb9e6beac1 100644 --- a/libavcodec/hevc_ps.h +++ b/libavcodec/hevc_ps.h @@ -145,6 +145,7 @@ typedef struct PTL { } PTL; typedef struct HEVCVPS { + unsigned int vps_id; HEVCHdrParams hdr[HEVC_MAX_LAYER_SETS]; uint8_t vps_temporal_id_nesting_flag; |