Commit 6c35b4de authored by Michael Niedermayer's avatar Michael Niedermayer

10l

Originally committed as revision 5527 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent f3a30e3a
...@@ -331,7 +331,7 @@ write_utf8(PutBitContext *pb, uint32_t val) ...@@ -331,7 +331,7 @@ write_utf8(PutBitContext *pb, uint32_t val)
return; return;
} }
bytes= (av_log2(val)-1) / 5; bytes= (av_log2(val)+4) / 5;
shift = (bytes - 1) * 6; shift = (bytes - 1) * 6;
put_bits(pb, 8, (256 - (256>>bytes)) | (val >> shift)); put_bits(pb, 8, (256 - (256>>bytes)) | (val >> shift));
while(shift >= 6){ while(shift >= 6){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment