summaryrefslogtreecommitdiff
path: root/libavformat/oggparsevorbis.c
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2007-06-24 12:20:16 +0000
committerMåns Rullgård <mans@mansr.com>2007-06-24 12:20:16 +0000
commit1eb1f6fdb85cfe53a452f37c2dc636740637b5ae (patch)
treefffc2f18b20de62798a18e29a8f6b49732cbff04 /libavformat/oggparsevorbis.c
parentd66c30adecabc01c3764eda7ba489423259503c5 (diff)
use AV_RL32
Originally committed as revision 9409 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/oggparsevorbis.c')
-rw-r--r--libavformat/oggparsevorbis.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c
index 0020c3f6cc..b4d03bd85c 100644
--- a/libavformat/oggparsevorbis.c
+++ b/libavformat/oggparsevorbis.c
@@ -38,7 +38,7 @@ vorbis_comment (AVFormatContext * as, uint8_t *buf, int size)
if (size < 4)
return -1;
- s = le2me_32 (unaligned32 (p));
+ s = AV_RL32(p);
p += 4;
size -= 4;
@@ -48,7 +48,7 @@ vorbis_comment (AVFormatContext * as, uint8_t *buf, int size)
p += s;
size -= s;
- n = le2me_32 (unaligned32 (p));
+ n = AV_RL32(p);
p += 4;
size -= 4;
@@ -56,7 +56,7 @@ vorbis_comment (AVFormatContext * as, uint8_t *buf, int size)
char *t, *v;
int tl, vl;
- s = le2me_32 (unaligned32 (p));
+ s = AV_RL32(p);
p += 4;
size -= 4;
@@ -185,9 +185,9 @@ vorbis_header (AVFormatContext * s, int idx)
if (os->buf[os->pstart] == 1) {
uint8_t *p = os->buf + os->pstart + 11; //skip up to the audio channels
st->codec->channels = *p++;
- st->codec->sample_rate = le2me_32 (unaligned32 (p));
+ st->codec->sample_rate = AV_RL32(p);
p += 8; //skip maximum and and nominal bitrate
- st->codec->bit_rate = le2me_32 (unaligned32 (p)); //Minimum bitrate
+ st->codec->bit_rate = AV_RL32(p); //Minimum bitrate
st->codec->codec_type = CODEC_TYPE_AUDIO;
st->codec->codec_id = CODEC_ID_VORBIS;