[FFmpeg-devel] [PATCH] Fix skip_put_bits()?
Stefano Sabatini
stefano.sabatini-lala
Mon Apr 13 01:50:23 CEST 2009
Hi,
this is the result of this simple test program:
#define SIZE 160
int main()
{
uint8_t buf[SIZE];
PutBitContext pb;
init_put_bits(&pb, buf, SIZE*8);
printf("+0->%d\n", put_bits_count(&pb));
while (put_bits_count(&pb) < SIZE*8) {
skip_put_bits(&pb, 16);
printf("+16->%d\n", put_bits_count(&pb));
}
return 0;
}
+0->0
+16->16
+16->32
+16->24
+16->40
+16->32
+16->48
+16->40
+16->56
+16->48
+16->64
+16->56
+16->72
+16->64
+16->80
+16->72
+16->88
+16->80
+16->96
+16->88
+16->104
...
Patch fixes it.
Regards.
--
FFmpeg = Free and Fundamental Mastering Power Extroverse Game
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bs-fix-skip-put-bits.patch
Type: text/x-diff
Size: 424 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090413/8464da36/attachment.patch>
More information about the ffmpeg-devel
mailing list