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:
parent
fc429d785e
commit
3bc866159c
@ -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;
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user