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") }