From 27d1313404e65097746f26678111f95aa3732789 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Tue, 22 Dec 2020 18:20:35 -0500 Subject: [PATCH] openjpegenc: Only allow stripe with image/x-jpc format It's the only format that our MPEG-TS muxer allows and the carriage of JPEG 2000 stripes is only defined for MPEG-TS as far as I know. Part-of: --- ext/openjpeg/gstopenjpegenc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/openjpeg/gstopenjpegenc.c b/ext/openjpeg/gstopenjpegenc.c index af5814bb4a..4d70e3089c 100644 --- a/ext/openjpeg/gstopenjpegenc.c +++ b/ext/openjpeg/gstopenjpegenc.c @@ -152,13 +152,14 @@ static GstStaticPadTemplate gst_openjpeg_enc_src_template = "width = (int) [1, MAX], " "height = (int) [1, MAX], " "num-components = (int) [1, 4], " - "num-stripes = (int) [1, MAX], " GST_JPEG2000_SAMPLING_LIST "," GST_JPEG2000_COLORSPACE_LIST "; " "image/x-jpc, " "width = (int) [1, MAX], " "height = (int) [1, MAX], " "num-components = (int) [1, 4], " + "num-stripes = (int) [1, MAX], " + "alignment = (string) { frame, stripe }, " GST_JPEG2000_SAMPLING_LIST "," GST_JPEG2000_COLORSPACE_LIST "; " "image/jp2, " "width = (int) [1, MAX], " "height = (int) [1, MAX]")