lavf/chromaprint: Update for version 1.4
authorGeorgi D. Sotirov <gdsotirov@dir.bg>
Tue, 6 Dec 2016 20:07:59 +0000 (21:07 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Tue, 6 Dec 2016 20:07:59 +0000 (21:07 +0100)
Fixes ticket #5997.

libavformat/chromaprint.c

index 8c9a6c0..4da02be 100644 (file)
@@ -39,7 +39,11 @@ typedef struct ChromaprintMuxContext {
     int silence_threshold;
     int algorithm;
     FingerprintFormat fp_format;
+#if CPR_VERSION_INT >= AV_VERSION_INT(1, 4, 0)
+    ChromaprintContext *ctx;
+#else
     ChromaprintContext ctx;
+#endif
 } ChromaprintMuxContext;
 
 static void cleanup(ChromaprintMuxContext *cpr)