[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec asv1.c,1.22,1.23

Michael Niedermayer CVS michael
Fri Mar 10 20:10:48 CET 2006


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

Modified Files:
	asv1.c 
Log Message:
add assert to clarify that we know what we are doing


Index: asv1.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/asv1.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- asv1.c	5 Feb 2006 13:35:16 -0000	1.22
+++ asv1.c	10 Mar 2006 19:10:46 -0000	1.23
@@ -289,6 +289,7 @@
         if( (block[index + 1] = (block[index + 1]*a->q_intra_matrix[index + 1] + (1<<15))>>16) ) ccp |= 2;
         if( (block[index + 9] = (block[index + 9]*a->q_intra_matrix[index + 9] + (1<<15))>>16) ) ccp |= 1;
 
+        assert(i || ccp<8);
         if(i) put_bits(&a->pb, ac_ccp_tab[ccp][1], ac_ccp_tab[ccp][0]);
         else  put_bits(&a->pb, dc_ccp_tab[ccp][1], dc_ccp_tab[ccp][0]);
 





More information about the ffmpeg-cvslog mailing list