[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec h264.c,1.145,1.146

Reimar Döffinger CVS reimar
Fri Jul 22 11:01:51 CEST 2005


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

Modified Files:
	h264.c 
Log Message:
Add missing +1 in bounds check.


Index: h264.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/h264.c,v
retrieving revision 1.145
retrieving revision 1.146
diff -u -d -r1.145 -r1.146
--- h264.c	14 Jul 2005 21:57:22 -0000	1.145
+++ h264.c	22 Jul 2005 09:01:47 -0000	1.146
@@ -3108,7 +3108,7 @@
     if(deblock_top){
         XCHG(*(uint64_t*)(h->top_borders[0][s->mb_x]+0), *(uint64_t*)(src_y +1), temp64, xchg);
         XCHG(*(uint64_t*)(h->top_borders[0][s->mb_x]+8), *(uint64_t*)(src_y +9), temp64, 1);
-        if(s->mb_x < s->mb_width){
+        if(s->mb_x+1 < s->mb_width){
             XCHG(*(uint64_t*)(h->top_borders[0][s->mb_x+1]), *(uint64_t*)(src_y +17), temp64, 1);
         }
     }





More information about the ffmpeg-cvslog mailing list