[FFmpeg-cvslog] r10700 - trunk/libavcodec/h264.c

andoma subversion
Tue Oct 9 19:45:34 CEST 2007


Author: andoma
Date: Tue Oct  9 19:45:34 2007
New Revision: 10700

Log:
fix incorrect check for abs_diff_pic_num overflow

patch by Jeff Downs, heydowns a borg d com



Modified:
   trunk/libavcodec/h264.c

Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	(original)
+++ trunk/libavcodec/h264.c	Tue Oct  9 19:45:34 2007
@@ -3076,7 +3076,7 @@ static int decode_ref_pic_list_reorderin
                         const unsigned int abs_diff_pic_num= get_ue_golomb(&s->gb) + 1;
                         int frame_num;
 
-                        if(abs_diff_pic_num >= h->max_pic_num){
+                        if(abs_diff_pic_num > h->max_pic_num){
                             av_log(h->s.avctx, AV_LOG_ERROR, "abs_diff_pic_num overflow\n");
                             return -1;
                         }




More information about the ffmpeg-cvslog mailing list