comparison mov.c @ 4487:7590f1edf959 libavformat

demux some more metadata tags in mov
author aurel
date Sun, 15 Feb 2009 14:13:28 +0000
parents 9267b8cf7918
children 284c22e8f739
comparison
equal deleted inserted replaced
4486:fde631f0bc67 4487:7590f1edf959
1459 ff_mov_lang_to_iso639(get_be16(pb), language); 1459 ff_mov_lang_to_iso639(get_be16(pb), language);
1460 atom.size -= 4; 1460 atom.size -= 4;
1461 } 1461 }
1462 switch (atom.type) { 1462 switch (atom.type) {
1463 case MKTAG(0xa9,'n','a','m'): key = "title"; break; 1463 case MKTAG(0xa9,'n','a','m'): key = "title"; break;
1464 case MKTAG(0xa9,'a','u','t'):
1464 case MKTAG(0xa9,'A','R','T'): 1465 case MKTAG(0xa9,'A','R','T'):
1465 case MKTAG(0xa9,'w','r','t'): key = "author"; break; 1466 case MKTAG(0xa9,'w','r','t'): key = "author"; break;
1466 case MKTAG(0xa9,'c','p','y'): key = "copyright"; break; 1467 case MKTAG(0xa9,'c','p','y'): key = "copyright"; break;
1467 case MKTAG(0xa9,'c','m','t'): 1468 case MKTAG(0xa9,'c','m','t'):
1468 case MKTAG(0xa9,'i','n','f'): key = "comment"; break; 1469 case MKTAG(0xa9,'i','n','f'): key = "comment"; break;
1469 case MKTAG(0xa9,'a','l','b'): key = "album"; break; 1470 case MKTAG(0xa9,'a','l','b'): key = "album"; break;
1471 case MKTAG(0xa9,'d','a','y'): key = "year"; break;
1472 case MKTAG(0xa9,'g','e','n'): key = "genre"; break;
1473 case MKTAG(0xa9,'t','o','o'):
1474 case MKTAG(0xa9,'e','n','c'): key = "muxer"; break;
1470 } 1475 }
1471 if (!key) 1476 if (!key)
1472 return 0; 1477 return 0;
1473 if (atom.size < 0) 1478 if (atom.size < 0)
1474 return -1; 1479 return -1;
1840 { MKTAG(0xa9,'i','n','f'), mov_read_udta_string }, 1845 { MKTAG(0xa9,'i','n','f'), mov_read_udta_string },
1841 { MKTAG(0xa9,'i','n','f'), mov_read_udta_string }, 1846 { MKTAG(0xa9,'i','n','f'), mov_read_udta_string },
1842 { MKTAG(0xa9,'A','R','T'), mov_read_udta_string }, 1847 { MKTAG(0xa9,'A','R','T'), mov_read_udta_string },
1843 { MKTAG(0xa9,'a','l','b'), mov_read_udta_string }, 1848 { MKTAG(0xa9,'a','l','b'), mov_read_udta_string },
1844 { MKTAG(0xa9,'c','m','t'), mov_read_udta_string }, 1849 { MKTAG(0xa9,'c','m','t'), mov_read_udta_string },
1850 { MKTAG(0xa9,'a','u','t'), mov_read_udta_string },
1851 { MKTAG(0xa9,'d','a','y'), mov_read_udta_string },
1852 { MKTAG(0xa9,'g','e','n'), mov_read_udta_string },
1853 { MKTAG(0xa9,'e','n','c'), mov_read_udta_string },
1854 { MKTAG(0xa9,'t','o','o'), mov_read_udta_string },
1845 { 0, NULL } 1855 { 0, NULL }
1846 }; 1856 };
1847 1857
1848 static int mov_probe(AVProbeData *p) 1858 static int mov_probe(AVProbeData *p)
1849 { 1859 {