diff libmpdemux/demux_ogg.c @ 23262:a08c4d770870

Ignore comments where no '=' follows the comment name (otherwise "album_ja=..." would result in "Album: ja=..." MPlayer output). Patch by Nicolas George [nicolas george [at] ens fr]. See thread: "[PATCH] Equals in Ogg comments", Mon, 5 Mar 2007 10:50:02 +0100
author reimar
date Wed, 09 May 2007 20:10:14 +0000
parents 4d81dbdf46b9
children f625b826ec32
line wrap: on
line diff
--- a/libmpdemux/demux_ogg.c	Wed May 09 17:29:20 2007 +0000
+++ b/libmpdemux/demux_ogg.c	Wed May 09 20:10:14 2007 +0000
@@ -455,7 +455,8 @@
     else {
 	for (i = 0; table[i].ogg; i++)
 	{
-	    if (!strncasecmp(*cmt, table[i].ogg, strlen(table[i].ogg)))
+	    if (!strncasecmp(*cmt, table[i].ogg, strlen(table[i].ogg)) &&
+	        (*cmt)[strlen(table[i].ogg)] == '=')
 	    {
 		hdr = table[i].mp;
 		val = *cmt + strlen(table[i].ogg) + 1;