summaryrefslogtreecommitdiff
path: root/community-staging/gpac/openjpeg14.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community-staging/gpac/openjpeg14.patch')
-rw-r--r--community-staging/gpac/openjpeg14.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/community-staging/gpac/openjpeg14.patch b/community-staging/gpac/openjpeg14.patch
new file mode 100644
index 000000000..68a625eeb
--- /dev/null
+++ b/community-staging/gpac/openjpeg14.patch
@@ -0,0 +1,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
+ }
+
+