/* pSlice->adaptive_ref_pic_buffering_flag; */
sps->log2_max_frame_num_minus4 =
p_H264_Dpb->dpb_param.l.data[LOG2_MAX_FRAME_NUM] - 4;
+ sps->frame_num_gap_allowed = p_H264_Dpb->dpb_param.l.data[FRAME_NUM_GAP_ALLOWED];
p_Vid->non_conforming_stream =
p_H264_Dpb->dpb_param.l.data[NON_CONFORMING_STREAM];
currSlice->frame_num != p_Vid->pre_frame_num &&
currSlice->frame_num !=
(p_Vid->pre_frame_num + 1) % p_Vid->max_frame_num) {
+ struct SPSParameters *active_sps = p_Vid->active_sps;
/*if (active_sps->
*gaps_in_frame_num_value_allowed_flag
*== 0) {
*}
*if (p_Vid->conceal_mode == 0)
*/
- fill_frame_num_gap(p_Vid, currSlice);
+ if (active_sps->frame_num_gap_allowed)
+ fill_frame_num_gap(p_Vid, currSlice);
*frame_num_gap = 1;
}