[Ffmpeg-cvslog] r6754 - trunk/libavcodec/golomb.h

kostya subversion
Sun Oct 22 06:52:15 CEST 2006


Author: kostya
Date: Sun Oct 22 06:52:15 2006
New Revision: 6754

Modified:
   trunk/libavcodec/golomb.h

Log:
handle limit>32 for set_ur_golomb_jpegls()

Modified: trunk/libavcodec/golomb.h
==============================================================================
--- trunk/libavcodec/golomb.h	(original)
+++ trunk/libavcodec/golomb.h	Sun Oct 22 06:52:15 2006
@@ -445,6 +445,10 @@
         if(k)
             put_bits(pb, k, i&((1<<k)-1));
     }else{
+        while(limit > 31) {
+            put_bits(pb, 31, 0);
+            limit -= 31;
+        }
         put_bits(pb, limit  , 1);
         put_bits(pb, esc_len, i - 1);
     }




More information about the ffmpeg-cvslog mailing list