summaryrefslogtreecommitdiff
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorLoren Merritt <lorenm@u.washington.edu>2008-03-01 01:58:25 +0000
committerLoren Merritt <lorenm@u.washington.edu>2008-03-01 01:58:25 +0000
commitbe0995b166df20c5ed631ac6c964913844c6823c (patch)
tree053f0c2d7b156dd6b1342c81af18b978d59c6a23 /libavcodec/h264.c
parent40e8e497004cc82db1d566efe3b601b23b658d89 (diff)
more aspect ratios added in one of the ammendments
Originally committed as revision 12282 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 7f37cb46af..cd6facb9b0 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -7008,7 +7008,7 @@ static inline int decode_vui_parameters(H264Context *h, SPS *sps){
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");