aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mp3.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2007-07-06 09:32:34 +0000
committerDiego Biurrun <diego@biurrun.de>2007-07-06 09:32:34 +0000
commit80fb82346e6d680d2ccff761a578fe856ed3b54c (patch)
treeb6f45c841d9e30729aaf265e8dbd645bf5ff5b61 /libavformat/mp3.c
parent042ef4b720f5d3321d9b7eeeb2067c671d5aeefd (diff)
downloadffmpeg-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/mp3.c')
-rw-r--r--libavformat/mp3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mp3.c b/libavformat/mp3.c
index 4a03c00fa4..04e8bcf420 100644
--- a/libavformat/mp3.c
+++ b/libavformat/mp3.c
@@ -407,7 +407,7 @@ static int mp3_read_probe(AVProbeData *p)
buf2 = buf;
for(frames = 0; buf2 < end; frames++) {
- header = (buf2[0] << 24) | (buf2[1] << 16) | (buf2[2] << 8) | buf2[3];
+ header = AV_RB32(buf2);
fsize = ff_mpa_decode_header(&avctx, header, &sample_rate);
if(fsize < 0)
break;