projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84e65c7
)
rangecoder-test: Return in case of an error
author
Diego Biurrun
<diego@biurrun.de>
Fri, 12 Oct 2012 19:14:56 +0000
(21:14 +0200)
committer
Diego Biurrun
<diego@biurrun.de>
Mon, 15 Oct 2012 19:15:17 +0000
(21:15 +0200)
libavcodec/rangecoder.c
patch
|
blob
|
history
diff --git
a/libavcodec/rangecoder.c
b/libavcodec/rangecoder.c
index
147e58d
..
df10008
100644
(file)
--- 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")
}