changeset 7866:4f0e33b1a228 libavcodec

Correct the threshold of get_ur_golomb_jpegls() at which the optimized case is used. Fix issue245.
author michael
date Mon, 15 Sep 2008 20:30:22 +0000
parents c7420b070961
children 2a611af7bcbe
files golomb.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/golomb.h	Sun Sep 14 22:27:47 2008 +0000
+++ b/golomb.h	Mon Sep 15 20:30:22 2008 +0000
@@ -255,7 +255,7 @@
 
     log= av_log2(buf);
 
-    if(log > 31-11){
+    if(log - k >= 32-MIN_CACHE_BITS){
         buf >>= log - k;
         buf += (30-log)<<k;
         LAST_SKIP_BITS(re, gb, 32 + k - log);