aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/asv1.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-03-10 19:10:46 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-03-10 19:10:46 +0000
commiteabb0ac38e3da2976ab250274fea2ae1e97da8c5 (patch)
tree88b26b0dbf9fffa05176e5410b1a3732fe15e750 /libavcodec/asv1.c
parentcb666260a05bfbd7a3ceb1be21dd97848d3ede7c (diff)
downloadffmpeg-eabb0ac38e3da2976ab250274fea2ae1e97da8c5.tar.gz
add assert to clarify that we know what we are doing
Originally committed as revision 5138 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/asv1.c')
-rw-r--r--libavcodec/asv1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/asv1.c b/libavcodec/asv1.c
index 1cb15d812d..3cfb76e65e 100644
--- a/libavcodec/asv1.c
+++ b/libavcodec/asv1.c
@@ -289,6 +289,7 @@ static inline void asv2_encode_block(ASV1Context *a, DCTELEM block[64]){
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]);