diff golomb.h @ 3353:5b901881d6ed libavcodec

first rudimentary version of (Justin Ruggles jruggle earthlink net) flac encoder
author michael
date Sat, 24 Jun 2006 10:20:15 +0000
parents 0b546eab515d
children c8c591fe26f8
line wrap: on
line diff
--- a/golomb.h	Sat Jun 24 09:25:21 2006 +0000
+++ b/golomb.h	Sat Jun 24 10:20:15 2006 +0000
@@ -435,6 +435,10 @@
 
     e= (i>>k) + 1;
     if(e<limit){
+        while(e > 31) {
+            put_bits(pb, 31, 0);
+            e -= 31;
+        }
         put_bits(pb, e, 1);
         if(k)
             put_bits(pb, k, i&((1<<k)-1));