1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

rangecoder-test: Return in case of an error

This commit is contained in:
Diego Biurrun 2012-10-12 21:14:56 +02:00
parent 84e65c763d
commit c1fcfdec75

View File

@ -150,8 +150,10 @@ STOP_TIMER("put_rac")
for (i = 0; i < SIZE; i++) { for (i = 0; i < SIZE; i++) {
START_TIMER 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); av_log(NULL, AV_LOG_ERROR, "rac failure at %d\n", i);
return 1;
}
STOP_TIMER("get_rac") STOP_TIMER("get_rac")
} }