Revision be0995b1

View differences:

libavcodec/h264.c
7008 7008
        if( aspect_ratio_idc == EXTENDED_SAR ) {
7009 7009
            sps->sar.num= get_bits(&s->gb, 16);
7010 7010
            sps->sar.den= get_bits(&s->gb, 16);
7011
        }else if(aspect_ratio_idc < 14){
7011
        }else if(aspect_ratio_idc < sizeof(pixel_aspect)/sizeof(*pixel_aspect)){
7012 7012
            sps->sar=  pixel_aspect[aspect_ratio_idc];
7013 7013
        }else{
7014 7014
            av_log(h->s.avctx, AV_LOG_ERROR, "illegal aspect ratio\n");
libavcodec/h264data.h
54 54
NAL_AUXILIARY_SLICE=19
55 55
};
56 56

  
57
static const AVRational pixel_aspect[14]={
57
static const AVRational pixel_aspect[17]={
58 58
 {0, 1},
59 59
 {1, 1},
60 60
 {12, 11},
......
69 69
 {15, 11},
70 70
 {64, 33},
71 71
 {160,99},
72
 {4, 3},
73
 {3, 2},
74
 {2, 1},
72 75
};
73 76

  
74 77
static const uint8_t golomb_to_pict_type[5]=

Also available in: Unified diff