Commit 55ca917d authored by michael's avatar michael

10l


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5527 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 82a18fc5
...@@ -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