mirror of https://github.com/mpv-player/mpv
Replace hopefully unreachable code with abort()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24914 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
9e796deb33
commit
3e8ab86642
|
@ -388,13 +388,8 @@ int decode_audio(sh_audio_t *sh_audio, unsigned char *buf, int minlen,
|
|||
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 -
|
||||
|
|
Loading…
Reference in New Issue