diff oggparsevorbis.c @ 2600:a004bd730f70 libavformat

use bytestream_get_* in vorbis_comment()
author mru
date Sat, 13 Oct 2007 11:42:06 +0000
parents eb7808a9d361
children b86ce6737811
line wrap: on
line diff
--- a/oggparsevorbis.c	Fri Oct 12 23:25:48 2007 +0000
+++ b/oggparsevorbis.c	Sat Oct 13 11:42:06 2007 +0000
@@ -39,8 +39,7 @@
     if (size < 8) /* must have vendor_length and user_comment_list_length */
         return -1;
 
-    s = AV_RL32(p);
-    p += 4;
+    s = bytestream_get_le32(&p);
     size -= 4;
 
     if (size - 4 < s)
@@ -49,16 +48,14 @@
     p += s;
     size -= s;
 
-    n = AV_RL32(p);
-    p += 4;
+    n = bytestream_get_le32(&p);
     size -= 4;
 
     while (size >= 4) {
         char *t, *v;
         int tl, vl;
 
-        s = AV_RL32(p);
-        p += 4;
+        s = bytestream_get_le32(&p);
         size -= 4;
 
         if (size < s)