summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-05-09 20:10:14 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-05-09 20:10:14 +0000
commit1e4b9a95b786fe4ff08704e4694b46d873c90a2c (patch)
tree50c22dbbdf1a673337e12da08f07b7e3de372eca /libmpdemux
parent4d9f279a6685c65dfe85c0a11b53983a005e4827 (diff)
downloadmpv-1e4b9a95b786fe4ff08704e4694b46d873c90a2c.tar.bz2
mpv-1e4b9a95b786fe4ff08704e4694b46d873c90a2c.tar.xz
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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23280 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/demux_ogg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmpdemux/demux_ogg.c b/libmpdemux/demux_ogg.c
index 483f959380..82fed62e67 100644
--- a/libmpdemux/demux_ogg.c
+++ b/libmpdemux/demux_ogg.c
@@ -455,7 +455,8 @@ static void demux_ogg_check_comments(demuxer_t *d, ogg_stream_t *os, int id, vor
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;