[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec h264.c,1.197,1.198

Michael Niedermayer CVS michael
Tue Mar 14 00:47:01 CET 2006


Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv1390

Modified Files:
	h264.c 
Log Message:
fixing coverity warnig CID: 253 (reading over the end of the aspect_ratio array for illegal aspect ratios)


Index: h264.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/h264.c,v
retrieving revision 1.197
retrieving revision 1.198
diff -u -d -r1.197 -r1.198
--- h264.c	9 Mar 2006 08:05:45 -0000	1.197
+++ h264.c	13 Mar 2006 23:46:47 -0000	1.198
@@ -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");





More information about the ffmpeg-cvslog mailing list