comparison mov.c @ 3587:7d5480d3989d libavformat

Return max score when ftyp atom is encountered.
author bcoudurier
date Fri, 18 Jul 2008 00:23:37 +0000
parents cdbf302a3c00
children f217917f4433
comparison
equal deleted inserted replaced
3586:e421492a6e27 3587:7d5480d3989d
1697 case MKTAG('j','P',' ',' '): /* jpeg 2000 signature */ 1697 case MKTAG('j','P',' ',' '): /* jpeg 2000 signature */
1698 case MKTAG('m','o','o','v'): 1698 case MKTAG('m','o','o','v'):
1699 case MKTAG('m','d','a','t'): 1699 case MKTAG('m','d','a','t'):
1700 case MKTAG('p','n','o','t'): /* detect movs with preview pics like ew.mov and april.mov */ 1700 case MKTAG('p','n','o','t'): /* detect movs with preview pics like ew.mov and april.mov */
1701 case MKTAG('u','d','t','a'): /* Packet Video PVAuthor adds this and a lot of more junk */ 1701 case MKTAG('u','d','t','a'): /* Packet Video PVAuthor adds this and a lot of more junk */
1702 case MKTAG('f','t','y','p'):
1702 return AVPROBE_SCORE_MAX; 1703 return AVPROBE_SCORE_MAX;
1703 /* those are more common words, so rate then a bit less */ 1704 /* those are more common words, so rate then a bit less */
1704 case MKTAG('e','d','i','w'): /* xdcam files have reverted first tags */ 1705 case MKTAG('e','d','i','w'): /* xdcam files have reverted first tags */
1705 case MKTAG('w','i','d','e'): 1706 case MKTAG('w','i','d','e'):
1706 case MKTAG('f','r','e','e'): 1707 case MKTAG('f','r','e','e'):
1707 case MKTAG('j','u','n','k'): 1708 case MKTAG('j','u','n','k'):
1708 case MKTAG('p','i','c','t'): 1709 case MKTAG('p','i','c','t'):
1709 return AVPROBE_SCORE_MAX - 5; 1710 return AVPROBE_SCORE_MAX - 5;
1710 case MKTAG(0x82,0x82,0x7f,0x7d ): 1711 case MKTAG(0x82,0x82,0x7f,0x7d ):
1711 case MKTAG('f','t','y','p'):
1712 case MKTAG('s','k','i','p'): 1712 case MKTAG('s','k','i','p'):
1713 case MKTAG('u','u','i','d'): 1713 case MKTAG('u','u','i','d'):
1714 case MKTAG('p','r','f','l'): 1714 case MKTAG('p','r','f','l'):
1715 offset = AV_RB32(p->buf+offset) + offset; 1715 offset = AV_RB32(p->buf+offset) + offset;
1716 /* if we only find those cause probedata is too small at least rate them */ 1716 /* if we only find those cause probedata is too small at least rate them */