mirror of https://git.ffmpeg.org/ffmpeg.git
h264_ps: expose pps_id
This commit is contained in:
parent
317fa3bd1d
commit
02f38af2dd
|
@ -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]) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue