changeset 3183:8e00b10aeb0a libavcodec

add assert to clarify that we know what we are doing
author michael
date Fri, 10 Mar 2006 19:10:46 +0000
parents bfb20cb7774b
children 68d7896a08e4
files asv1.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/asv1.c	Fri Mar 10 18:40:41 2006 +0000
+++ b/asv1.c	Fri Mar 10 19:10:46 2006 +0000
@@ -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]);