From c849b6683a4ff59ffd25a9559340cc5016a73f25 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 3 Nov 2007 10:20:00 +0000 Subject: [PATCH] Remove a check+abort, this case should never happen anyway, and if it does the most likely result is a NULL dereference which isn't much worse. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24946 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/dec_audio.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libmpcodecs/dec_audio.c b/libmpcodecs/dec_audio.c index de94987371..05cd88146f 100644 --- a/libmpcodecs/dec_audio.c +++ b/libmpcodecs/dec_audio.c @@ -417,9 +417,6 @@ static int filter_n_bytes(sh_audio_t *sh, int len) * Can reallocate sh_audio->a_out_buffer if needed to fit all filter output. */ int decode_audio(sh_audio_t *sh_audio, int minlen) { - if (!sh_audio->inited || !sh_audio->afilter) - abort(); - // Decoded audio must be cut at boundaries of this many bytes int unitsize = sh_audio->channels * sh_audio->samplesize;