# HG changeset patch # User uau # Date 1193899913 0 # Node ID 9846871187fa6c97f759f7720b817117133023ab # Parent cd55d31cecb25aff8fec9360aba9458633da0267 Replace hopefully unreachable code with abort() diff -r cd55d31cecb2 -r 9846871187fa libmpcodecs/dec_audio.c --- a/libmpcodecs/dec_audio.c Thu Nov 01 06:51:49 2007 +0000 +++ b/libmpcodecs/dec_audio.c Thu Nov 01 06:51:53 2007 +0000 @@ -388,13 +388,8 @@ af_data_t *pafd; // filter output ad_functions_t *mpadec = sh_audio->ad_driver; - if (!sh_audio->inited) - return -1; // no codec - if (!sh_audio->afilter) { - // no filter, just decode: - // FIXME: don't drop initial decoded data in a_buffer! - return mpadec->decode_audio(sh_audio, buf, minlen, maxlen); - } + if (!sh_audio->inited || !sh_audio->afilter) + abort(); declen = af_calc_insize_constrained(sh_audio->afilter, minlen, maxlen, sh_audio->a_buffer_size -