nalUnitHeaderBytes if( (nal_unit_type ==14 I nal_unit_type==20) { svc_extension_flag if( svc_extension flag ) nal_unit_header_svc_extension() /* specified in Annex G */ nal_unit_header_mvc_extension() /* specified in Annex H*/ nalUnitHeaderBytes for( nalUnitHeaderBytes; i< NumBytesInNALunit; i++) { if(i+2 < NumBytesInNALuni && next_bits(24) == 0x000003){ rbsp_byte[ NumBytesInRBSP++ rbsp_byte[ NumBytesInRBSP++ ] emulation_prevention_three_byte /* equal to 0x03 */ } else _byte[NumBytesInRBSP++ 7.3.2 Raw byte sequence payloads and RBSP trailing bits syntax 7.3.2.1 Sequence parameter set RBSP syntax seq_parameter_set_rbsp() { Descriptor seq_parameter_set_data() rbsp_trailing_bits() Rec. ITU-T H.264 (01/2012) 7.3.2.1.1 Sequence parameter set data syntax seq_parameter_set_data(){ Descriptor profile_ide constraint_set0_flag constraint_setl_flag constraint_set2_flag constraint_set3_flag constraint_set4_flag constraint_set5_flag reserved_zero_2bits /*equal to 0*/ level_ide seq_parameter_set_id ue(v) profile_id ==100 le idc == 110 profile ==122 profile_idc ==244 profile_idc ==44 profile dc ==83| profile_idc ==86 profile_idc ==118 profile idc 128) { chroma_format_idc ue(v) if( chroma_format_idc == 3) separate_colour_plane_flag bit_depth_luma_minus8 ue(v) bit_depth_chroma_minus8 ue(v) qpprime_y_zero_transform_bypass_flag seq_scaling_matrix_present_flag seq_scaling_matrix_present_flag) for(i=0;i<((chroma_format_idc ! 3)?8:12);i++) seq_scaling_list_present_flag[i] if(seq_scaling_list_present_flag[i]) f(i<6) scaling_list(ScalingList4x4[i],16 UseDefaultScalingMatrix4x4Flag[i]) scaling_list(ScalingList8x8[i-6],64, UseDefaultScalingMatrix8x8Flag[i-6]) log2_max_frame_num_minus4 ue(v) pic_order_cnt_type ue(v) if( pic_order_cnt_type == 0) log2_max_pic_order_cnt_lsb_minus4 ue(v) else if(pic_order_cnt_type==1){ delta_pic_order_always_zero_flag offset_for_non_ref_pi se(v) ffset_for_top_to_bottom_field se(v) num_ref_frames_in_pic_order_cnt_cycle ue(v) or(i=0;i<num_ref_frames_in_pic_order_cnt_cycle;i++) offset_for_ref_frame[i] se(v) max_n