Mercurial > mplayer.hg
diff libmpcodecs/ad_imaadpcm.c @ 5458:b3d1348b251f
audio input buffer allocation/free cleanup
author | arpi |
---|---|
date | Mon, 01 Apr 2002 17:58:04 +0000 |
parents | f9cd6381e327 |
children | 8ae2bf330ad5 |
line wrap: on
line diff
--- a/libmpcodecs/ad_imaadpcm.c Mon Apr 01 17:12:10 2002 +0000 +++ b/libmpcodecs/ad_imaadpcm.c Mon Apr 01 17:58:04 2002 +0000 @@ -98,6 +98,7 @@ sh_audio->ds->ss_div = QT_IMA_ADPCM_SAMPLES_PER_BLOCK; sh_audio->ds->ss_mul = QT_IMA_ADPCM_BLOCK_SIZE * sh_audio->wf->nChannels; } + sh_audio->audio_in_minsize=sh_audio->ds->ss_mul; return 1; } @@ -110,16 +111,11 @@ sh_audio->i_bps = (sh_audio->ds->ss_mul * sh_audio->samplerate) / sh_audio->ds->ss_div; - 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, ...)