mirror of
https://github.com/mpv-player/mpv
synced 2024-12-17 04:15:13 +00:00
Simplify imaadpcm return statement
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27261 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
792dc55d19
commit
ca588e6a9f
@ -321,6 +321,5 @@ static int decode_audio(sh_audio_t *sh_audio,unsigned char *buf,int minlen,int m
|
|||||||
|
|
||||||
res = decode_func((unsigned short*)buf, sh_audio->a_in_buffer,
|
res = decode_func((unsigned short*)buf, sh_audio->a_in_buffer,
|
||||||
sh_audio->wf->nChannels, sh_audio->ds->ss_mul);
|
sh_audio->wf->nChannels, sh_audio->ds->ss_mul);
|
||||||
if (res < 0) return res;
|
return res < 0 ? res : 2 * res;
|
||||||
else return 2 * res;
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user