changeset 27229:e6de9712a5e5

Simplify imaadpcm return statement
author reimar
date Fri, 11 Jul 2008 19:28:22 +0000
parents 860c265b08e8
children 48b793612e37
files libmpcodecs/ad_imaadpcm.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ad_imaadpcm.c	Fri Jul 11 19:27:35 2008 +0000
+++ b/libmpcodecs/ad_imaadpcm.c	Fri Jul 11 19:28:22 2008 +0000
@@ -321,6 +321,5 @@
 
   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;
 }