changeset 3587:7d5480d3989d libavformat

Return max score when ftyp atom is encountered.
author bcoudurier
date Fri, 18 Jul 2008 00:23:37 +0000
parents e421492a6e27
children f217917f4433
files mov.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mov.c	Thu Jul 17 14:13:44 2008 +0000
+++ b/mov.c	Fri Jul 18 00:23:37 2008 +0000
@@ -1699,6 +1699,7 @@
         case MKTAG('m','d','a','t'):
         case MKTAG('p','n','o','t'): /* detect movs with preview pics like ew.mov and april.mov */
         case MKTAG('u','d','t','a'): /* Packet Video PVAuthor adds this and a lot of more junk */
+        case MKTAG('f','t','y','p'):
             return AVPROBE_SCORE_MAX;
         /* those are more common words, so rate then a bit less */
         case MKTAG('e','d','i','w'): /* xdcam files have reverted first tags */
@@ -1708,7 +1709,6 @@
         case MKTAG('p','i','c','t'):
             return AVPROBE_SCORE_MAX - 5;
         case MKTAG(0x82,0x82,0x7f,0x7d ):
-        case MKTAG('f','t','y','p'):
         case MKTAG('s','k','i','p'):
         case MKTAG('u','u','i','d'):
         case MKTAG('p','r','f','l'):