changeset 2196:5864dc9a9741 libavformat

use AV_RL32
author mru
date Sun, 24 Jun 2007 12:20:16 +0000
parents ab9e3ecd5583
children 94d11eaef9bf
files oggparsevorbis.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/oggparsevorbis.c	Sun Jun 24 12:12:04 2007 +0000
+++ b/oggparsevorbis.c	Sun Jun 24 12:20:16 2007 +0000
@@ -38,7 +38,7 @@
     if (size < 4)
         return -1;
 
-    s = le2me_32 (unaligned32 (p));
+    s = AV_RL32(p);
     p += 4;
     size -= 4;
 
@@ -48,7 +48,7 @@
     p += s;
     size -= s;
 
-    n = le2me_32 (unaligned32 (p));
+    n = AV_RL32(p);
     p += 4;
     size -= 4;
 
@@ -56,7 +56,7 @@
         char *t, *v;
         int tl, vl;
 
-        s = le2me_32 (unaligned32 (p));
+        s = AV_RL32(p);
         p += 4;
         size -= 4;
 
@@ -185,9 +185,9 @@
     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;