Commit b997b67c authored by Aurelien Jacobs's avatar Aurelien Jacobs Committed by Måns Rullgård

use get_bits_long() where needed

patch by Aurelien Jacobs, aurel gnuage org

Originally committed as revision 9314 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 1bdf0fe7
......@@ -49,7 +49,7 @@ flac_header (AVFormatContext * s, int idx)
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);
......
......@@ -86,12 +86,12 @@ theora_header (AVFormatContext * s, int idx)
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment