From b45411e24a7566a1191f9526a4adea0f76e9cb86 Mon Sep 17 00:00:00 2001 From: Vitor Sessak Date: Mon, 23 Jun 2008 20:42:36 +0000 Subject: [PATCH] It makes more sense to return 1 here in case of overflow. Originally committed as revision 13930 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/ra144.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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--) {