[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec h264.c,1.121,1.122

Michael Niedermayer CVS michael
Thu May 12 10:44:20 CEST 2005


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

Modified Files:
	h264.c 
Log Message:
some asserts()


Index: h264.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/h264.c,v
retrieving revision 1.121
retrieving revision 1.122
diff -u -d -r1.121 -r1.122
--- h264.c	7 May 2005 11:07:47 -0000	1.121
+++ h264.c	12 May 2005 08:44:17 -0000	1.122
@@ -370,6 +370,7 @@
     stride *= size;
     
     assert((((int)vp)&(FFMIN(w, STRIDE_ALIGN)-1)) == 0);
+    assert((stride&(w-1))==0);
 //FIXME check what gcc generates for 64 bit on x86 and possibly write a 32 bit ver of it
     if(w==2 && h==2){
         *(uint16_t*)(p + 0)=
@@ -727,6 +728,7 @@
                 *(uint32_t*)h->mv_cache [list][scan8[0] - 1 + 3*8]= 0;
                 h->ref_cache[list][scan8[0] - 1 + 2*8]=
                 h->ref_cache[list][scan8[0] - 1 + 3*8]= left_type[0] ? LIST_NOT_USED : PART_NOT_AVAILABLE;
+                assert((!left_type[0]) == (!left_type[1]));
             }
 
             if(for_deblock || (IS_DIRECT(mb_type) && !h->direct_spatial_mv_pred))





More information about the ffmpeg-cvslog mailing list