aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ra144.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-06-23 20:42:36 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-06-23 20:42:36 +0000
commitb45411e24a7566a1191f9526a4adea0f76e9cb86 (patch)
tree0b6d5c04a137b1fdd813882fdc511fb9c8783ea9 /libavcodec/ra144.c
parent37a4b3bb02f52dab1fb226c72c1e1bafcd0afff7 (diff)
downloadffmpeg-b45411e24a7566a1191f9526a4adea0f76e9cb86.tar.gz
It makes more sense to return 1 here in case of overflow.
Originally committed as revision 13930 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ra144.c')
-rw-r--r--libavcodec/ra144.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ra144.c b/libavcodec/ra144.c
index 4e30ac0811..5901e2198b 100644
--- a/libavcodec/ra144.c
+++ b/libavcodec/ra144.c
@@ -272,7 +272,7 @@ static int eval_refl(const int16_t *coefs, int *refl, RA144Context *ractx)
if (u + 0x1000 > 0x1fff) {
av_log(ractx, AV_LOG_ERROR, "Overflow. Broken sample?\n");
- return 0;
+ return 1;
}
for (c=8; c >= 0; c--) {