Mercurial > mplayer.hg
diff libmpcodecs/ad_dk4adpcm.c @ 5458:b3d1348b251f
audio input buffer allocation/free cleanup
author | arpi |
---|---|
date | Mon, 01 Apr 2002 17:58:04 +0000 |
parents | a9f3df4ee465 |
children | 8ae2bf330ad5 |
line wrap: on
line diff
--- a/libmpcodecs/ad_dk4adpcm.c Mon Apr 01 17:12:10 2002 +0000 +++ b/libmpcodecs/ad_dk4adpcm.c Mon Apr 01 17:58:04 2002 +0000 @@ -25,8 +25,8 @@ (((sh_audio->wf->nBlockAlign - DK4_ADPCM_PREAMBLE_SIZE) * 2) + 1) * 4; sh_audio->ds->ss_div = ((sh_audio->wf->nBlockAlign - DK4_ADPCM_PREAMBLE_SIZE) * 2) + 1; + sh_audio->audio_in_minsize= sh_audio->ds->ss_mul=sh_audio->wf->nBlockAlign; - return 1; } @@ -37,17 +37,11 @@ sh_audio->i_bps = sh_audio->wf->nBlockAlign * (sh_audio->channels*sh_audio->samplerate) / (((sh_audio->wf->nBlockAlign - DK4_ADPCM_PREAMBLE_SIZE) * 2) + 1); - - if ((sh_audio->a_in_buffer = - (unsigned char *)malloc(sh_audio->ds->ss_mul)) == NULL) - return 0; - return 1; } static void uninit(sh_audio_t *sh_audio) { - free(sh_audio->a_in_buffer); } static int control(sh_audio_t *sh,int cmd,void* arg, ...)