diff options
author | Diego Biurrun <diego@biurrun.de> | 2012-10-12 21:14:56 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2012-10-15 21:15:17 +0200 |
commit | c1fcfdec75468009dc7de29a5d1c6adf3b2ef77d (patch) | |
tree | 24f5f23a37ccb31fe401e3ca3644a19792272865 | |
parent | 84e65c763d8fd09afbfd9743174ad4a81d597783 (diff) | |
download | ffmpeg-c1fcfdec75468009dc7de29a5d1c6adf3b2ef77d.tar.gz |
rangecoder-test: Return in case of an error
-rw-r--r-- | libavcodec/rangecoder.c | 4 |
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") } |