[vlc-devel] [PATCH 1/8] opus_header: rework comments
Rafaël Carré
funman at videolan.org
Sat Sep 21 16:54:28 CEST 2013
---
modules/codec/opus_header.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/modules/codec/opus_header.c b/modules/codec/opus_header.c
index dafea7b..20b5547 100644
--- a/modules/codec/opus_header.c
+++ b/modules/codec/opus_header.c
@@ -220,19 +220,19 @@ int opus_header_parse(const unsigned char *packet, int len, OpusHeader *h)
/*
Comments will be stored in the Vorbis style.
- It is describled in the "Structure" section of
+ It is described in the "Structure" section of
http://www.xiph.org/ogg/vorbis/doc/v-comment.html
However, Opus and other non-vorbis formats omit the "framing_bit".
The comment header is decoded as follows:
- 1) [vendor_length] = read an unsigned integer of 32 bits
- 2) [vendor_string] = read a UTF-8 vector as [vendor_length] octets
- 3) [user_comment_list_length] = read an unsigned integer of 32 bits
+ 1) [vendor_length] = unsigned little endian 32 bits integer
+ 2) [vendor_string] = UTF-8 vector as [vendor_length] octets
+ 3) [user_comment_list_length] = unsigned little endian 32 bits integer
4) iterate [user_comment_list_length] times {
- 5) [length] = read an unsigned integer of 32 bits
- 6) this iteration's user comment = read a UTF-8 vector as [length] octets
- }
+ 5) [length] = unsigned little endian 32 bits integer
+ 6) this iteration's user comment = UTF-8 vector as [length] octets
+ }
7) done.
*/
--
1.8.1.2
More information about the vlc-devel
mailing list