Mercurial > libavcodec.hg
diff h264.c @ 6429:3c67363d6fa0 libavcodec
more aspect ratios added in one of the ammendments
author | lorenm |
---|---|
date | Sat, 01 Mar 2008 01:58:25 +0000 |
parents | 931ca319f2fe |
children | 493dc59d469a |
line wrap: on
line diff
--- a/h264.c Fri Feb 29 08:01:01 2008 +0000 +++ b/h264.c Sat Mar 01 01:58:25 2008 +0000 @@ -7008,7 +7008,7 @@ if( aspect_ratio_idc == EXTENDED_SAR ) { sps->sar.num= get_bits(&s->gb, 16); sps->sar.den= get_bits(&s->gb, 16); - }else if(aspect_ratio_idc < 14){ + }else if(aspect_ratio_idc < sizeof(pixel_aspect)/sizeof(*pixel_aspect)){ sps->sar= pixel_aspect[aspect_ratio_idc]; }else{ av_log(h->s.avctx, AV_LOG_ERROR, "illegal aspect ratio\n");