[FFmpeg-cvslog] r10724 - trunk/libavformat/oggparsevorbis.c
mru
subversion
Sat Oct 13 13:42:06 CEST 2007
Author: mru
Date: Sat Oct 13 13:42:06 2007
New Revision: 10724
Log:
use bytestream_get_* in vorbis_comment()
Modified:
trunk/libavformat/oggparsevorbis.c
Modified: trunk/libavformat/oggparsevorbis.c
==============================================================================
--- trunk/libavformat/oggparsevorbis.c (original)
+++ trunk/libavformat/oggparsevorbis.c Sat Oct 13 13:42:06 2007
@@ -39,8 +39,7 @@ vorbis_comment(AVFormatContext * as, uin
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, uin
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)
More information about the ffmpeg-cvslog
mailing list