aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-10-12 21:14:56 +0200
committerDiego Biurrun <diego@biurrun.de>2012-10-15 21:15:17 +0200
commitc1fcfdec75468009dc7de29a5d1c6adf3b2ef77d (patch)
tree24f5f23a37ccb31fe401e3ca3644a19792272865
parent84e65c763d8fd09afbfd9743174ad4a81d597783 (diff)
downloadffmpeg-c1fcfdec75468009dc7de29a5d1c6adf3b2ef77d.tar.gz
rangecoder-test: Return in case of an error
-rw-r--r--libavcodec/rangecoder.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/rangecoder.c b/libavcodec/rangecoder.c
index 147e58de40..df1000844e 100644
--- a/libavcodec/rangecoder.c
+++ b/libavcodec/rangecoder.c
@@ -150,8 +150,10 @@ STOP_TIMER("put_rac")
for (i = 0; i < SIZE; i++) {
START_TIMER
- if ((r[i] & 1) != get_rac(&c, state))
+ if ((r[i] & 1) != get_rac(&c, state)) {
av_log(NULL, AV_LOG_ERROR, "rac failure at %d\n", i);
+ return 1;
+ }
STOP_TIMER("get_rac")
}