changeset 3357:649ebe86d779 libavcodec

10l
author michael
date Sun, 25 Jun 2006 21:22:25 +0000
parents 90344fa4a1d4
children 4ae69b5b596b
files flacenc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flacenc.c	Sun Jun 25 17:37:12 2006 +0000
+++ b/flacenc.c	Sun Jun 25 21:22:25 2006 +0000
@@ -331,7 +331,7 @@
         return;
     }
 
-    bytes= (av_log2(val)-1) / 5;
+    bytes= (av_log2(val)+4) / 5;
     shift = (bytes - 1) * 6;
     put_bits(pb, 8, (256 - (256>>bytes)) | (val >> shift));
     while(shift >= 6){