summaryrefslogtreecommitdiff
path: root/community/gpac/openjpeg14.patch
blob: 68a625eeb8f6d84a12a4b9e53d7b32d4d0678eea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
https://bugs.gentoo.org/show_bug.cgi?id=361359

Index: gpac/modules/img_in/jp2_dec.c
===================================================================
--- gpac.orig/modules/img_in/jp2_dec.c
+++ gpac/modules/img_in/jp2_dec.c
@@ -340,9 +340,16 @@ static GF_Err JP2_ProcessData(GF_MediaDe
 	return GF_OK;
 }
 
+char opj_version_buffer[500];
+
 static const char *JP2_GetCodecName(GF_BaseDecoder *dec)
 {
+#ifndef OPENJPEG_VERSION
+	snprintf(opj_version_buffer, sizeof(opj_version_buffer), "OpenJPEG %s", opj_version());
+	return opj_version_buffer;
+#else
 	return "OpenJPEG "OPENJPEG_VERSION ;
+#endif
 }