changeset 3196:15157293beea libavcodec

fixing coverity warnig CID: 253 (reading over the end of the aspect_ratio array for illegal aspect ratios)
author michael
date Mon, 13 Mar 2006 23:46:47 +0000
parents 10cda832bd0f
children 8f53630cd24e
files h264.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Mon Mar 13 23:29:00 2006 +0000
+++ b/h264.c	Mon Mar 13 23:46:47 2006 +0000
@@ -7104,7 +7104,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 < 16){
+        }else if(aspect_ratio_idc < 14){
             sps->sar=  pixel_aspect[aspect_ratio_idc];
         }else{
             av_log(h->s.avctx, AV_LOG_ERROR, "illegal aspect ratio\n");