summaryrefslogtreecommitdiff
path: root/libavformat/oggparsevorbis.c
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2007-10-13 11:42:06 +0000
committerMåns Rullgård <mans@mansr.com>2007-10-13 11:42:06 +0000
commit0a770ae7b49547ca3e15ea74de9bdba0ec05ed5c (patch)
treeeaeac2cc0a33f5cf5cf988d5622f74977e39e843 /libavformat/oggparsevorbis.c
parent80b1c5a8580c84e45ee1304a6be21a629aca252f (diff)
use bytestream_get_* in vorbis_comment()
Originally committed as revision 10724 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/oggparsevorbis.c')
-rw-r--r--libavformat/oggparsevorbis.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c
index 4cbf8fe422..a89e881581 100644
--- a/libavformat/oggparsevorbis.c
+++ b/libavformat/oggparsevorbis.c
@@ -39,8 +39,7 @@ vorbis_comment(AVFormatContext * as, uint8_t *buf, int size)
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 @@ vorbis_comment(AVFormatContext * as, uint8_t *buf, int size)
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)