1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

hevc_ps: expose pps_id

This commit is contained in:
Lynne 2022-12-07 05:33:29 +01:00
parent fc429d785e
commit 3bc866159c
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464
2 changed files with 2 additions and 1 deletions

View File

@ -1776,7 +1776,7 @@ int ff_hevc_decode_nal_pps(GetBitContext *gb, AVCodecContext *avctx,
pps->log2_max_transform_skip_block_size = 2; pps->log2_max_transform_skip_block_size = 2;
// Coded parameters // Coded parameters
pps_id = get_ue_golomb_long(gb); pps_id = pps->pps_id = get_ue_golomb_long(gb);
if (pps_id >= HEVC_MAX_PPS_COUNT) { if (pps_id >= HEVC_MAX_PPS_COUNT) {
av_log(avctx, AV_LOG_ERROR, "PPS id out of range: %d\n", pps_id); av_log(avctx, AV_LOG_ERROR, "PPS id out of range: %d\n", pps_id);
ret = AVERROR_INVALIDDATA; ret = AVERROR_INVALIDDATA;

View File

@ -289,6 +289,7 @@ typedef struct HEVCSPS {
} HEVCSPS; } HEVCSPS;
typedef struct HEVCPPS { typedef struct HEVCPPS {
unsigned int pps_id;
unsigned int sps_id; ///< seq_parameter_set_id unsigned int sps_id; ///< seq_parameter_set_id
uint8_t sign_data_hiding_flag; uint8_t sign_data_hiding_flag;