# HG changeset patch # User reimar # Date 1194085200 0 # Node ID 9d1af7d2a7fcc5511273500388ea83e15976f7a2 # Parent ef396e93f13d1a9374b298141c5956383d5ab8e5 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. diff -r ef396e93f13d -r 9d1af7d2a7fc libmpcodecs/dec_audio.c --- a/libmpcodecs/dec_audio.c Sat Nov 03 07:41:17 2007 +0000 +++ b/libmpcodecs/dec_audio.c Sat Nov 03 10:20:00 2007 +0000 @@ -417,9 +417,6 @@ * 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;