comparison adpcm.c @ 5846:94b29c56556b libavcodec

remove some useless initializations (the whole context is initialized to 0)
author aurel
date Sun, 21 Oct 2007 22:44:05 +0000
parents 342ab05e7d05
children dea3ac1d4c67
comparison
equal deleted inserted replaced
5845:342ab05e7d05 5846:94b29c56556b
638 638
639 if(avctx->channels > 2U){ 639 if(avctx->channels > 2U){
640 return -1; 640 return -1;
641 } 641 }
642 642
643 c->channel = 0;
644 c->status[0].predictor = c->status[1].predictor = 0;
645 c->status[0].step_index = c->status[1].step_index = 0;
646 c->status[0].step = c->status[1].step = 0;
647
648 switch(avctx->codec->id) { 643 switch(avctx->codec->id) {
649 case CODEC_ID_ADPCM_CT: 644 case CODEC_ID_ADPCM_CT:
650 c->status[0].step = c->status[1].step = 511; 645 c->status[0].step = c->status[1].step = 511;
651 break; 646 break;
652 case CODEC_ID_ADPCM_IMA_WS: 647 case CODEC_ID_ADPCM_IMA_WS: