Commit 9e852ef2 authored by mru's avatar mru

use bytestream_get_* in vorbis_comment()


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10724 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e168a20a
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment