diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2007-07-06 09:32:34 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2007-07-06 09:32:34 +0000 |
commit | 80fb82346e6d680d2ccff761a578fe856ed3b54c (patch) | |
tree | b6f45c841d9e30729aaf265e8dbd645bf5ff5b61 /libavformat/oggparsetheora.c | |
parent | 042ef4b720f5d3321d9b7eeeb2067c671d5aeefd (diff) | |
download | ffmpeg-80fb82346e6d680d2ccff761a578fe856ed3b54c.tar.gz |
Use AV_RB* macros where appropriate.
patch by Ronald S. Bultje, rsbultje gmail com
thread: Re: [FFmpeg-devel] remove int readers
date: Sat, 23 Jun 2007 09:32:12 -0400
Originally committed as revision 9499 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/oggparsetheora.c')
-rw-r--r-- | libavformat/oggparsetheora.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libavformat/oggparsetheora.c b/libavformat/oggparsetheora.c index b3dc4e4db3..8fb57ebd5a 100644 --- a/libavformat/oggparsetheora.c +++ b/libavformat/oggparsetheora.c @@ -60,10 +60,7 @@ theora_header (AVFormatContext * s, int idx) skip_bits(&gb, 7*8); /* 0x80"theora" */ - version = get_bits(&gb, 8) << 16; - version |= get_bits(&gb, 8) << 8; - version |= get_bits(&gb, 8); - + version = get_bits_long(&gb, 24); if (version < 0x030100) { av_log(s, AV_LOG_ERROR, |