summarylogtreecommitdiffstats
path: root/chromaprint_1.4_fix.patch
blob: e424463d9eb5f8cf3733d0aa38b5b5865583cf6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From 581f93f37ef2e7a00662828ed0348d1edb9041fe Mon Sep 17 00:00:00 2001
From: "Georgi D. Sotirov" <gdsotirov@dir.bg>
Date: Tue, 6 Dec 2016 21:07:59 +0100
Subject: [PATCH] lavf/chromaprint: Update for version 1.4

Fixes ticket #5997.
---
 libavformat/chromaprint.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavformat/chromaprint.c b/libavformat/chromaprint.c
index 8c9a6c0..4da02be 100644
--- a/libavformat/chromaprint.c
+++ b/libavformat/chromaprint.c
@@ -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)
-- 
2.1.4