changeset 2168:d095666dedf3 libavformat

use get_bits_long() where needed patch by Aurelien Jacobs, aurel gnuage org
author mru
date Thu, 14 Jun 2007 18:14:35 +0000
parents c4244900f986
children a5f318cc9245
files oggparseflac.c oggparsetheora.c
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/oggparseflac.c	Wed Jun 13 08:24:22 2007 +0000
+++ b/oggparseflac.c	Thu Jun 14 18:14:35 2007 +0000
@@ -49,7 +49,7 @@
         skip_bits(&gb, 4*8); /* "fLaC" */
 
         /* METADATA_BLOCK_HEADER */
-        if (get_bits(&gb, 32) != FLAC_STREAMINFO_SIZE)
+        if (get_bits_long(&gb, 32) != FLAC_STREAMINFO_SIZE)
             return -1;
 
         skip_bits(&gb, 16*2+24*2);
--- a/oggparsetheora.c	Wed Jun 13 08:24:22 2007 +0000
+++ b/oggparsetheora.c	Thu Jun 14 18:14:35 2007 +0000
@@ -86,12 +86,12 @@
 
         if (version >= 0x030200)
             skip_bits(&gb, 16);
-        st->codec->time_base.den = get_bits(&gb, 32);
-        st->codec->time_base.num = get_bits(&gb, 32);
+        st->codec->time_base.den = get_bits_long(&gb, 32);
+        st->codec->time_base.num = get_bits_long(&gb, 32);
         st->time_base = st->codec->time_base;
 
-        st->codec->sample_aspect_ratio.num = get_bits(&gb, 24);
-        st->codec->sample_aspect_ratio.den = get_bits(&gb, 24);
+        st->codec->sample_aspect_ratio.num = get_bits_long(&gb, 24);
+        st->codec->sample_aspect_ratio.den = get_bits_long(&gb, 24);
 
         if (version >= 0x030200)
             skip_bits(&gb, 38);