changeset 7869:cd18f66b3663 libavcodec

Fix regression test failure caused by golomb limit not being considered in r15334.
author michael
date Tue, 16 Sep 2008 01:24:12 +0000
parents 850abcd10e19
children 08ef30f08a01
files golomb.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/golomb.h	Tue Sep 16 01:13:55 2008 +0000
+++ b/golomb.h	Tue Sep 16 01:24:12 2008 +0000
@@ -255,7 +255,7 @@
 
     log= av_log2(buf);
 
-    if(log - k >= 32-MIN_CACHE_BITS){
+    if(log - k >= 32-MIN_CACHE_BITS && 32-log < limit){
         buf >>= log - k;
         buf += (30-log)<<k;
         LAST_SKIP_BITS(re, gb, 32 + k - log);