[xiph-commits] r3881 - liboggz/trunk/src/liboggz
conrad at svn.annodex.net
conrad at svn.annodex.net
Tue Mar 17 00:05:48 PDT 2009
Author: conrad
Date: 2009-03-17 00:05:47 -0700 (Tue, 17 Mar 2009)
New Revision: 3881
Modified:
liboggz/trunk/src/liboggz/oggz_comments.c
Log:
add a missing accum_length in oggz_comments_encode
Modified: liboggz/trunk/src/liboggz/oggz_comments.c
===================================================================
--- liboggz/trunk/src/liboggz/oggz_comments.c 2009-03-17 04:19:03 UTC (rev 3880)
+++ liboggz/trunk/src/liboggz/oggz_comments.c 2009-03-17 07:05:47 UTC (rev 3881)
@@ -644,8 +644,10 @@
#endif
/* user comment list length */
- actual_length += 4;
+ if (accum_length (&actual_length, 4) == 0)
+ return 0;
+
for (comment = oggz_comment_first (oggz, serialno); comment;
comment = oggz_comment_next (oggz, serialno, comment)) {
/* [size]"name" */
@@ -682,7 +684,7 @@
field_length = oggz_comment_len (stream->vendor);
memcpy (c, stream->vendor, MIN (field_length, remaining));
c += field_length; remaining -= field_length;
- if (remaining <= 0 ) return actual_length;
+ if (remaining <= 0) return actual_length;
}
remaining -= 4;
More information about the commits
mailing list