projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a90fbee
)
Test a var for overflow just after it is set
author
Vitor Sessak
<vitor1001@gmail.com>
Sat, 6 Sep 2008 11:46:29 +0000
(11:46 +0000)
committer
Vitor Sessak
<vitor1001@gmail.com>
Sat, 6 Sep 2008 11:46:29 +0000
(11:46 +0000)
Originally committed as revision 15223 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/ra144.c
patch
|
blob
|
history
diff --git
a/libavcodec/ra144.c
b/libavcodec/ra144.c
index
6192cde
..
2918902
100644
(file)
--- a/
libavcodec/ra144.c
+++ b/
libavcodec/ra144.c
@@
-251,11
+251,11
@@
static int eval_refl(int *refl, const int16_t *coefs, RA144Context *ractx)
for (j=0; j <= i; j++)
bp1[j] = ((bp2[j] - ((refl[i+1] * bp2[i-j]) >> 12)) * (0x1000000 / b)) >> 12;
- refl[i] = bp1[i];
-
if ((unsigned) bp1[i] + 0x1000 > 0x1fff)
return 1;
+ refl[i] = bp1[i];
+
FFSWAP(int *, bp1, bp2);
}
return 0;