403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.217.103
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/audio/kid3/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/audio/kid3/files/patch-src_plugins_mp4v2metadata_m4afile.cpp
cmID and xid atoms only supported in mp4v2 >= 2.0.0

--- src/plugins/mp4v2metadata/m4afile.cpp.orig	2022-08-05 16:27:08 UTC
+++ src/plugins/mp4v2metadata/m4afile.cpp
@@ -124,6 +124,8 @@ const struct {
   { "geID", Frame::FT_Other },
   { "purl", Frame::FT_Other },
   { "egid", Frame::FT_Other },
+#endif
+#if MPEG4IP_MAJOR_MINOR_VERSION >= 0x0200
   { "cmID", Frame::FT_Other },
   { "xid ", Frame::FT_Other },
 #endif
@@ -343,8 +345,11 @@ QByteArray getValueByteArray(const char* name,
 #if MPEG4IP_MAJOR_MINOR_VERSION >= 0x0109
   } else if (std::strcmp(name, "tvsn") == 0 || std::strcmp(name, "tves") == 0 ||
              std::strcmp(name, "sfID") == 0 || std::strcmp(name, "cnID") == 0 ||
-             std::strcmp(name, "atID") == 0 || std::strcmp(name, "geID") == 0 ||
-             std::strcmp(name, "cmID") == 0) {
+             std::strcmp(name, "atID") == 0 || std::strcmp(name, "geID") == 0
+#if MPEG4IP_MAJOR_MINOR_VERSION >= 0x0200
+             || std::strcmp(name, "cmID") == 0
+#endif
+            ) {
     if (size >= 4) {
       uint val = value[3] + (value[2] << 8) +
         (value[1] << 16) + (value[0] << 24);
@@ -889,11 +894,13 @@ bool M4aFile::writeTags(bool force, bool* renamed, boo
           } else if (name == QLatin1String("geID")) {
             uint32_t val = str.toULong();
             MP4TagsSetGenreID(tags, &val);
+#if MPEG4IP_MAJOR_MINOR_VERSION >= 0x0200
           } else if (name == QLatin1String("cmID")) {
             uint32_t val = str.toULong();
             MP4TagsSetComposerID(tags, &val);
           } else if (name == QLatin1String("xid ")) {
             MP4TagsSetXID(tags, str);
+#endif
           } else {
             MP4ItmfItem* item;
             if (name.length() == 4 &&
@@ -1579,7 +1586,10 @@ QStringList M4aFile::getFrameIds(Frame::TagNumber tagN
     QLatin1String("plID") << QLatin1String("purd") << QLatin1String("rtng") << QLatin1String("sfID") <<
     QLatin1String("sosn") << QLatin1String("stik") << QLatin1String("tven") <<
     QLatin1String("tves") << QLatin1String("tvnn") << QLatin1String("tvsh") << QLatin1String("tvsn") <<
-    QLatin1String("purl") << QLatin1String("egid") << QLatin1String("cmID") << QLatin1String("xid ");
+    QLatin1String("purl") << QLatin1String("egid");
+#endif
+#if MPEG4IP_MAJOR_MINOR_VERSION >= 0x0200
+  lst << QLatin1String("cmID") << QLatin1String("xid ");
 #endif
   lst << QLatin1String("Chapters");
   return lst;

Youez - 2016 - github.com/yon3zu
LinuXploit