[FFmpeg-devel] [PATCH] Fix put_bits()?

Stefano Sabatini stefano.sabatini-lala
Sun Apr 12 20:19:30 CEST 2009


Hi, the attached patch set in bit_buf the remaining part of the value
put in the bitstream, according to the scheme:

            value
+-------------+----------------+
| bit_left    |  n-bit_left    |
+-------------+----------------+

so it sets (1<<(n-bit_left)-1)&value in bit_buf.

make test is still successfull, so the bug, if it is indeed a bug,
isn't raised by the current test code.

Regards.
-- 
FFmpeg = Faboulous and Free Miracolous Philosophical Epehemeral Ghost
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bs-fix-put-bits.patch
Type: text/x-diff
Size: 514 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090412/610727d5/attachment.patch>



More information about the ffmpeg-devel mailing list