hevc_ps: expose vps_id

pull/389/head
Lynne 2 years ago
parent 3bc866159c
commit d0b02c3aff
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464
  1. 2
      libavcodec/hevc_ps.c
  2. 1
      libavcodec/hevc_ps.h

@ -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");

@ -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;

Loading…
Cancel
Save