diff options
author | 2002-04-01 17:58:04 +0000 | |
---|---|---|
committer | 2002-04-01 17:58:04 +0000 | |
commit | aff40c7823d8bcbe1c1d2c259601150bdeffa998 (patch) | |
tree | 98dbf28ee8afa11095544a0cb68b22921d34cba1 /libmpcodecs/ad_roqaudio.c | |
parent | e8236a8ab65e16a8d131f16ce6b892b71299ca02 (diff) |
audio input buffer allocation/free cleanup
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5459 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/ad_roqaudio.c')
-rw-r--r-- | libmpcodecs/ad_roqaudio.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libmpcodecs/ad_roqaudio.c b/libmpcodecs/ad_roqaudio.c index d390d13724..8d30d63b83 100644 --- a/libmpcodecs/ad_roqaudio.c +++ b/libmpcodecs/ad_roqaudio.c @@ -22,6 +22,7 @@ static int preinit(sh_audio_t *sh_audio) { // minsize was stored in wf->nBlockAlign by the RoQ demuxer sh_audio->audio_out_minsize=sh_audio->wf->nBlockAlign; + sh_audio->audio_in_minsize=sh_audio->audio_out_minsize / 2; // FIXME? sh_audio->context = roq_decode_audio_init(); return 1; } @@ -31,17 +32,11 @@ static int init(sh_audio_t *sh_audio) sh_audio->channels=sh_audio->wf->nChannels; sh_audio->samplerate=sh_audio->wf->nSamplesPerSec; sh_audio->i_bps = 44100; - - if ((sh_audio->a_in_buffer = - (unsigned char *)malloc(sh_audio->audio_out_minsize / 2)) == 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, ...) |