comparison 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
comparison
equal deleted inserted replaced
23261:1bd2f5e63da5 23262:a08c4d770870
453 hdr = "Language"; 453 hdr = "Language";
454 } 454 }
455 else { 455 else {
456 for (i = 0; table[i].ogg; i++) 456 for (i = 0; table[i].ogg; i++)
457 { 457 {
458 if (!strncasecmp(*cmt, table[i].ogg, strlen(table[i].ogg))) 458 if (!strncasecmp(*cmt, table[i].ogg, strlen(table[i].ogg)) &&
459 (*cmt)[strlen(table[i].ogg)] == '=')
459 { 460 {
460 hdr = table[i].mp; 461 hdr = table[i].mp;
461 val = *cmt + strlen(table[i].ogg) + 1; 462 val = *cmt + strlen(table[i].ogg) + 1;
462 } 463 }
463 } 464 }