diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-08-06 05:24:21 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-08-06 05:24:21 +0000 |
commit | c0f0b34bba397e6413e746514054f6fa2439adba (patch) | |
tree | ee1b24929878e9725ef73419825d18d2d67d8687 /libavcodec/ra144.c | |
parent | 2f1cad0e582f6666fc8ff2b676718bda1be4ac57 (diff) | |
download | ffmpeg-c0f0b34bba397e6413e746514054f6fa2439adba.tar.gz |
Simplify eval_refl(): return directly when needed instead of storing the return value in a variable
Originally committed as revision 14640 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ra144.c')
-rw-r--r-- | libavcodec/ra144.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/ra144.c b/libavcodec/ra144.c index dcb8526268..4a3bc68f60 100644 --- a/libavcodec/ra144.c +++ b/libavcodec/ra144.c @@ -231,7 +231,6 @@ static void int_to_int16(int16_t *out, const int *inp) */ static int eval_refl(int *refl, const int16_t *coefs, RA144Context *ractx) { - int retval = 0; int b, c, i; unsigned int u; int buffer1[10]; @@ -267,11 +266,11 @@ static int eval_refl(int *refl, const int16_t *coefs, RA144Context *ractx) refl[c] = u = bp1[c]; if ((u + 0x1000) > 0x1fff) - retval = 1; + return 1; FFSWAP(int *, bp1, bp2); } - return retval; + return 0; } static int interp(RA144Context *ractx, int16_t *out, int block_num, |