[FFmpeg-cvslog] rangecoder-test: Return in case of an error
Diego Biurrun
git at videolan.org
Tue Oct 16 14:01:08 CEST 2012
ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Fri Oct 12 21:14:56 2012 +0200| [c1fcfdec75468009dc7de29a5d1c6adf3b2ef77d] | committer: Diego Biurrun
rangecoder-test: Return in case of an error
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c1fcfdec75468009dc7de29a5d1c6adf3b2ef77d
---
libavcodec/rangecoder.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavcodec/rangecoder.c b/libavcodec/rangecoder.c
index 147e58d..df10008 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")
}
More information about the ffmpeg-cvslog
mailing list