# HG changeset patch # User conrad # Date 1242259327 0 # Node ID a79015f8cd88bd7b2d21c0abf7615db0fb730575 # Parent 7e5d070c8f2e0b94960e3d35e99e23f34c84bc98 Use skip_bits_long() for large skips This fixes ogg/theora on ARM (more generally the A32 bitstream reader) diff -r 7e5d070c8f2e -r a79015f8cd88 oggparsetheora.c --- a/oggparsetheora.c Wed May 13 22:59:58 2009 +0000 +++ b/oggparsetheora.c Thu May 14 00:02:07 2009 +0000 @@ -58,7 +58,7 @@ init_get_bits(&gb, os->buf + os->pstart, os->psize*8); - skip_bits(&gb, 7*8); /* 0x80"theora" */ + skip_bits_long(&gb, 7*8); /* 0x80"theora" */ thp->version = get_bits_long(&gb, 24); if (thp->version < 0x030100) @@ -92,7 +92,7 @@ st->sample_aspect_ratio.den = get_bits_long(&gb, 24); if (thp->version >= 0x030200) - skip_bits(&gb, 38); + skip_bits_long(&gb, 38); if (thp->version >= 0x304000) skip_bits(&gb, 2);