gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r6038 - Extractor/src/plugins


From: gnunet
Subject: [GNUnet-SVN] r6038 - Extractor/src/plugins
Date: Wed, 26 Dec 2007 06:20:14 -0700 (MST)

Author: holindho
Date: 2007-12-26 06:20:14 -0700 (Wed, 26 Dec 2007)
New Revision: 6038

Modified:
   Extractor/src/plugins/qtextractor.c
Log:
add some notes


Modified: Extractor/src/plugins/qtextractor.c
===================================================================
--- Extractor/src/plugins/qtextractor.c 2007-12-26 13:01:04 UTC (rev 6037)
+++ Extractor/src/plugins/qtextractor.c 2007-12-26 13:20:14 UTC (rev 6038)
@@ -725,7 +725,12 @@
   "JavaneseRom",
 };
 
-
+/*
+ * see 
http://developer.apple.com/documentation/QuickTime/QTFF/QTFFChap2/chapter
+_3_section_2.html
+ *   "User Data Text Strings and Language Codes"
+ * TODO: make conformant
+ */
 static int
 processTextTag (const char *input,
                 size_t size,
@@ -752,9 +757,7 @@
   if (lang >= sizeof (languages) / sizeof (char *))
     return 0;                   /* invalid */
   addKeyword (EXTRACTOR_LANGUAGE, languages[lang], list);
-  /* TODO: what is the character set encoding here?
-     For now, let's assume it is Utf-8 (cannot find
-     anything in the public documentation) */
+
   meta = malloc (len + 1);
   memcpy (meta, &txt[1], len);
   meta[len] = '\0';
@@ -927,6 +930,9 @@
   {NULL, EXTRACTOR_UNKNOWN},
 };
 
+/* NOTE: iTunes tag processing should, in theory, be limited to iTunes
+ * file types (from ftyp), but, in reality, it seems that there are other
+ * files, like 3gpp, out in the wild with iTunes tags. */
 static int
 iTunesTagHandler (const char *input,
            size_t size, size_t pos, struct EXTRACTOR_Keywords **list)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]