h264_ps: expose pps_id

This commit is contained in:
Lynne 2022-03-18 15:11:02 +01:00
parent 317fa3bd1d
commit 02f38af2dd
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464
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))
pps->data[pps->data_size++] = 0x80;
pps->pps_id = pps_id;
pps->sps_id = get_ue_golomb_31(gb);
if ((unsigned)pps->sps_id >= MAX_SPS_COUNT ||
!ps->sps_list[pps->sps_id]) {

View File

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