You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
h264_ps: expose pps_id
This commit is contained in:
@@ -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]) {
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user