[MPlayer-dev-eng] [PATCH] Equals in Ogg comments
Nicolas George
nicolas.george at ens.fr
Tue May 8 14:04:17 CEST 2007
[ Previously in this thread:
If an Ogg file has commments "title=Foo" and "title_bar=Foo-unreadable",
mplayer will print "Title: _bar=Foo-unreadable" instead of "Title: Foo".
]
Le quintidi 15 ventôse, an CCXV, Nicolas George a écrit :
<snip>
Sorry, but has been two months, and the bug is still there. Here is the
patch, updated to current SVN (there was nothing to update, in fact).
As Reimar Döffinger pointed out, the same goal could have been achieved by
adding '=' in table[i].name, but I find it a little bit more logical that
way.
Regards,
--
Nicolas George
Index: libmpdemux/demux_ogg.c
===================================================================
--- libmpdemux/demux_ogg.c (revision 23261)
+++ libmpdemux/demux_ogg.c (working copy)
@@ -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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 185 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070508/079c1372/attachment.pgp>
More information about the MPlayer-dev-eng
mailing list