1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

h264_ps: expose pps_id

This commit is contained in:
Lynne
2022-03-18 15:11:02 +01:00
parent 317fa3bd1d
commit 02f38af2dd
2 changed files with 2 additions and 0 deletions

View File

@@ -731,6 +731,7 @@ int ff_h264_decode_picture_parameter_set(GetBitContext *gb, AVCodecContext *avct
if (!(bit_length & 7) && pps->data_size < sizeof(pps->data)) if (!(bit_length & 7) && pps->data_size < sizeof(pps->data))
pps->data[pps->data_size++] = 0x80; pps->data[pps->data_size++] = 0x80;
pps->pps_id = pps_id;
pps->sps_id = get_ue_golomb_31(gb); pps->sps_id = get_ue_golomb_31(gb);
if ((unsigned)pps->sps_id >= MAX_SPS_COUNT || if ((unsigned)pps->sps_id >= MAX_SPS_COUNT ||
!ps->sps_list[pps->sps_id]) { !ps->sps_list[pps->sps_id]) {

View File

@@ -103,6 +103,7 @@ typedef struct SPS {
* Picture parameter set * Picture parameter set
*/ */
typedef struct PPS { typedef struct PPS {
unsigned int pps_id;
unsigned int sps_id; unsigned int sps_id;
int cabac; ///< entropy_coding_mode_flag int cabac; ///< entropy_coding_mode_flag
int pic_order_present; ///< pic_order_present_flag int pic_order_present; ///< pic_order_present_flag