From 744594685e815583fab8db515419f80b4cf0deec Mon Sep 17 00:00:00 2001 From: Timothy Gu Date: Fri, 10 Apr 2015 10:27:34 -0700 Subject: [PATCH] cabac-test: Return 1 if there are any errors Signed-off-by: Michael Niedermayer --- libavcodec/cabac.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/libavcodec/cabac.c b/libavcodec/cabac.c index 81a75dd52a..c755d7f6d9 100644 --- a/libavcodec/cabac.c +++ b/libavcodec/cabac.c @@ -174,7 +174,7 @@ int main(void){ CABACContext c; uint8_t b[9*SIZE]; uint8_t r[9*SIZE]; - int i; + int i, ret = 0; uint8_t state[10]= {0}; AVLFG prng; @@ -207,21 +207,27 @@ STOP_TIMER("put_cabac") for(i=0; i