[xiph-commits] r7100 - icecast/trunk/icecast/src

brendan at dactyl.lonelymoon.com brendan
Sun Jul 11 19:21:20 PDT 2004


Author: brendan
Date: Sun Jul 11 19:21:20 2004
New Revision: 7100

Modified:
icecast/trunk/icecast/src/format_mp3.c
Log:
Add source comment to previous metadata bug fix: [sic]

Modified: icecast/trunk/icecast/src/format_mp3.c
===================================================================
--- icecast/trunk/icecast/src/format_mp3.c	2004-07-11 20:04:50 UTC (rev 7099)
+++ icecast/trunk/icecast/src/format_mp3.c	2004-07-12 02:21:18 UTC (rev 7100)
@@ -1,3 +1,4 @@
+/* -*- c-basic-offset: 4; -*- */
/* Icecast
*
* This program is distributed under the GNU General Public License, version 2.
@@ -10,7 +11,6 @@
*                      and others (see AUTHORS for details).
*/

-/* -*- c-basic-offset: 4; -*- */
/* format_mp3.c
**
** format plugin for mp3
@@ -125,6 +125,10 @@

fullmetadata_size = strlen (source_state->metadata) + sizeof (meta_fmt);

+	/* Noted without comment: When the metadata string is a multiple of
+	 * 16 bytes, the "reference" shoutcast server increases the length
+	 * byte by one and appends 16 nulls, rather than omitting the
+	 * pointless trailing null. */
if (fullmetadata_size > 4079)
{
fullmetadata_size = 4079;



More information about the commits mailing list