[MPlayer-cvslog] r27261 - trunk/libmpcodecs/ad_imaadpcm.c
reimar
subversion at mplayerhq.hu
Fri Jul 11 21:28:22 CEST 2008
Author: reimar
Date: Fri Jul 11 21:28:22 2008
New Revision: 27261
Log:
Simplify imaadpcm return statement
Modified:
trunk/libmpcodecs/ad_imaadpcm.c
Modified: trunk/libmpcodecs/ad_imaadpcm.c
==============================================================================
--- trunk/libmpcodecs/ad_imaadpcm.c (original)
+++ trunk/libmpcodecs/ad_imaadpcm.c Fri Jul 11 21:28:22 2008
@@ -321,6 +321,5 @@ static int decode_audio(sh_audio_t *sh_a
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;
}
More information about the MPlayer-cvslog
mailing list