From ca588e6a9f8393cd9996a238bdaca5cbdfcf702f Mon Sep 17 00:00:00 2001 From: reimar Date: Fri, 11 Jul 2008 19:28:22 +0000 Subject: Simplify imaadpcm return statement git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27261 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/ad_imaadpcm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libmpcodecs/ad_imaadpcm.c') diff --git a/libmpcodecs/ad_imaadpcm.c b/libmpcodecs/ad_imaadpcm.c index 33f07b463b..eae7c11a54 100644 --- a/libmpcodecs/ad_imaadpcm.c +++ b/libmpcodecs/ad_imaadpcm.c @@ -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, sh_audio->wf->nChannels, sh_audio->ds->ss_mul); - if (res < 0) return res; - else return 2 * res; + return res < 0 ? res : 2 * res; } -- cgit v1.2.3