[FFmpeg-soc] [soc]: r4325 - wmapro/wma3dec.c
faust3
subversion at mplayerhq.hu
Sat May 30 13:55:30 CEST 2009
Author: faust3
Date: Sat May 30 13:55:30 2009
New Revision: 4325
Log:
simplify == 0 checks
Modified:
wmapro/wma3dec.c
Modified: wmapro/wma3dec.c
==============================================================================
--- wmapro/wma3dec.c Sat May 30 13:48:03 2009 (r4324)
+++ wmapro/wma3dec.c Sat May 30 13:55:30 2009 (r4325)
@@ -742,7 +742,7 @@ static int wma_decode_channel_transform(
chgroup->transform_band[i] = 1;
}else{
/** transform can be enabled for individual bands */
- if(get_bits1(&s->gb) == 0){
+ if(!get_bits1(&s->gb)){
int i;
for(i=0;i< s->num_bands;i++){
chgroup->transform_band[i] = get_bits1(&s->gb);
@@ -1210,7 +1210,7 @@ static int wma_decode_subframe(WMA3Decod
}
/** check if the frame will be complete after processing the estimated block */
- if(total_samples == 0)
+ if(!total_samples)
s->parsed_all_subframes = 1;
@@ -1222,7 +1222,7 @@ static int wma_decode_subframe(WMA3Decod
/** calculate number of scale factor bands and their offsets */
/* FIXME move out of the loop */
- if(i == 0){
+ if(!i){
if(s->channel[c].num_subframes <= 1){
s->num_bands = s->num_sfb[0];
s->cur_sfb_offsets = s->sfb_offsets;
More information about the FFmpeg-soc
mailing list