[FFmpeg-devel] skip_put_bits() bugged?

Stefano Sabatini stefano.sabatini-lala
Tue Mar 31 02:30:52 CEST 2009


On date Tuesday 2009-03-31 01:46:38 +0200, Stefano Sabatini encoded:
> On date Tuesday 2009-03-31 00:17:31 +0200, Stefano Sabatini encoded:
> > Hi all,
> > 
> > check this test (you can put it in libavcodec/bitstream.c):
> [...]
> > Which looks quite wrong.
> > Commenting in skip_put_bits(&pb, 0); it looks fine.
> > 
> > Am I missing something or is it indeed broken?
> 
> It brokes for example when n is 0 and bit_left == 32.

Patch attached.

Regards.
-- 
FFmpeg = Friendly and Faithless Mastodontic Philosophical Explosive Gadget
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-skip-put-bits.patch
Type: text/x-diff
Size: 442 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090331/30447b5f/attachment.patch>



More information about the ffmpeg-devel mailing list