sps->sar_width= get_bits(&s->gb, 16); sps->sar_height= get_bits(&s->gb, 16);
sps->sar.num= get_bits(&s->gb, 16); sps->sar.den= get_bits(&s->gb, 16);
static inline int decode_vui_parameters(H264Context *h, SPS *sps){    MpegEncContext * const s = &h->s;    int aspect_ratio_info_present_flag, aspect_ratio_idc;    aspect_ratio_info_present_flag= get_bits1(&s->gb);        if( aspect_ratio_info_present_flag ) {        aspect_ratio_idc= get_bits(&s->gb, 8);        if( aspect_ratio_idc == EXTENDED_SAR ) {            sps->sar_width= get_bits(&s->gb, 16);            sps->sar_height= get_bits(&s->gb, 16);        }else if(aspect_ratio_idc < 16){            sps->sar_width=  pixel_aspect[aspect_ratio_idc][0];            sps->sar_height= pixel_aspect[aspect_ratio_idc][1];        }else{            fprintf(stderr, "illegal aspect ratio\n");            return -1;        }    }else{        sps->sar_width=         sps->sar_height= 0;    }//            s->avctx->aspect_ratio= sar_width*s->width / (float)(s->height*sar_height);#if 0| overscan_info_present_flag                        |0  |u(1)    || if( overscan_info_present_flag )                  |   |        ||  overscan_appropriate_flag                        |0  |u(1)    || video_signal_type_present_flag                    |0  |u(1)    || if( video_signal_type_present_flag ) {            |   |        ||  video_format                                     |0  |u(3)    ||  video_full_range_flag                            |0  |u(1)    ||  colour_description_present_flag                  |0  |u(1)    ||  if( colour_description_present_flag ) {          |   |        ||   colour_primaries                                |0  |u(8)    ||   transfer_characteristics                        |0  |u(8)    ||   matrix_coefficients                             |0  |u(8)    ||  }                                                |   |        || }                                                 |   |        || chroma_location_info_present_flag                 |0  |u(1)    || if ( chroma_location_info_present_flag ) {        |   |        ||  chroma_sample_location_type_top_field            |0  |ue(v)   ||  chroma_sample_location_type_bottom_field         |0  |ue(v)   || }                                                 |   |        || timing_info_present_flag                          |0  |u(1)    || if( timing_info_present_flag ) {                  |   |        ||  num_units_in_tick                                |0  |u(32)   ||  time_scale                                       |0  |u(32)   ||  fixed_frame_rate_flag                            |0  |u(1)    || }                                                 |   |        || nal_hrd_parameters_present_flag                   |0  |u(1)    || if( nal_hrd_parameters_present_flag  = =  1)      |   |        ||  hrd_parameters( )                                |   |        || vcl_hrd_parameters_present_flag                   |0  |u(1)    || if( vcl_hrd_parameters_present_flag  = =  1)      |   |        ||  hrd_parameters( )                                |   |        || if( ( nal_hrd_parameters_present_flag  = =  1  | ||   |        ||                                                   |   |        ||( vcl_hrd_parameters_present_flag  = =  1 ) )      |   |        ||  low_delay_hrd_flag                               |0  |u(1)    || bitstream_restriction_flag                        |0  |u(1)    || if( bitstream_restriction_flag ) {                |0  |u(1)    ||  motion_vectors_over_pic_boundaries_flag          |0  |u(1)    ||  max_bytes_per_pic_denom                          |0  |ue(v)   ||  max_bits_per_mb_denom                            |0  |ue(v)   ||  log2_max_mv_length_horizontal                    |0  |ue(v)   ||  log2_max_mv_length_vertical                      |0  |ue(v)   ||  num_reorder_frames                               |0  |ue(v)   ||  max_dec_frame_buffering                          |0  |ue(v)   || }                                                 |   |        ||}                                                  |   |        |#endif    return 0;}