changeset 4935:a79015f8cd88 libavformat

Use skip_bits_long() for large skips This fixes ogg/theora on ARM (more generally the A32 bitstream reader)
author conrad
date Thu, 14 May 2009 00:02:07 +0000
parents 7e5d070c8f2e
children c541d5552e20
files oggparsetheora.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);