Mercurial > mplayer.hg
changeset 24886:9846871187fa
Replace hopefully unreachable code with abort()
author | uau |
---|---|
date | Thu, 01 Nov 2007 06:51:53 +0000 |
parents | cd55d31cecb2 |
children | 484b8eaaf28f |
files | libmpcodecs/dec_audio.c |
diffstat | 1 files changed, 2 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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 -