From 80fb82346e6d680d2ccff761a578fe856ed3b54c Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Fri, 6 Jul 2007 09:32:34 +0000 Subject: 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 --- libavformat/oggparsetheora.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'libavformat/oggparsetheora.c') 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, -- cgit v1.2.1