Mercurial > libavcodec.hg
comparison cook.c @ 9173:fb675a9727f0 libavcodec
memset when category is >=7, part of cook multichannel
author | banan |
---|---|
date | Sun, 15 Mar 2009 14:04:25 +0000 |
parents | 043574c5c153 |
children | 4d8d8fe29d4d |
comparison
equal
deleted
inserted
replaced
9172:f99fb6054999 | 9173:fb675a9727f0 |
---|---|
615 if(unpack_SQVH(q, category[band], subband_coef_index, subband_coef_sign)){ | 615 if(unpack_SQVH(q, category[band], subband_coef_index, subband_coef_sign)){ |
616 index=7; | 616 index=7; |
617 for(j=0 ; j<q->total_subbands ; j++) category[band+j]=7; | 617 for(j=0 ; j<q->total_subbands ; j++) category[band+j]=7; |
618 } | 618 } |
619 } | 619 } |
620 if(index==7) { | 620 if(index>=7) { |
621 memset(subband_coef_index, 0, sizeof(subband_coef_index)); | 621 memset(subband_coef_index, 0, sizeof(subband_coef_index)); |
622 memset(subband_coef_sign, 0, sizeof(subband_coef_sign)); | 622 memset(subband_coef_sign, 0, sizeof(subband_coef_sign)); |
623 } | 623 } |
624 q->scalar_dequant(q, index, quant_index_table[band], | 624 q->scalar_dequant(q, index, quant_index_table[band], |
625 subband_coef_index, subband_coef_sign, | 625 subband_coef_index, subband_coef_sign, |