diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2007-06-14 18:14:35 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2007-06-14 18:14:35 +0000 |
commit | b997b67c63c3d0c7db83755448e311710d03a48f (patch) | |
tree | 05491a24c45a3bd6dc5d021e12496e845b912ad8 | |
parent | 1bdf0fe7c79c9b7ba37ff7ba045c676f7ef1182f (diff) | |
download | ffmpeg-b997b67c63c3d0c7db83755448e311710d03a48f.tar.gz |
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
-rw-r--r-- | libavformat/oggparseflac.c | 2 | ||||
-rw-r--r-- | libavformat/oggparsetheora.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/libavformat/oggparseflac.c b/libavformat/oggparseflac.c index 8960088d87..b2bdcd4dcd 100644 --- a/libavformat/oggparseflac.c +++ b/libavformat/oggparseflac.c @@ -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); diff --git a/libavformat/oggparsetheora.c b/libavformat/oggparsetheora.c index c2045ce17e..b3dc4e4db3 100644 --- a/libavformat/oggparsetheora.c +++ b/libavformat/oggparsetheora.c @@ -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); |