diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-06-25 21:22:25 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-06-25 21:22:25 +0000 |
commit | 6c35b4dee3da7caba822d5b1af683c1f7922dc7d (patch) | |
tree | 6d18d066607e33d08f660514f59d11ed8157fd2d /libavcodec | |
parent | f3a30e3a9c87a2d8350c4d8d2387be18dbd1cf02 (diff) | |
download | ffmpeg-6c35b4dee3da7caba822d5b1af683c1f7922dc7d.tar.gz |
10l
Originally committed as revision 5527 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/flacenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c index d88b11d4c4..29d3ce1fd4 100644 --- a/libavcodec/flacenc.c +++ b/libavcodec/flacenc.c @@ -331,7 +331,7 @@ write_utf8(PutBitContext *pb, uint32_t val) 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){ |