mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
jpegdec: add sof-marker to template caps, so we don't get plugged for lossless jpeg
jpegdec (using libjpeg 6.2/8) can't decode some lossless types of JPEG. https://bugzilla.gnome.org/show_bug.cgi?id=556648
This commit is contained in:
parent
96fc28eacd
commit
ff40deb139
1 changed files with 3 additions and 1 deletions
|
@ -74,6 +74,7 @@ GST_STATIC_PAD_TEMPLATE ("src",
|
|||
);
|
||||
/* *INDENT-ON* */
|
||||
|
||||
/* FIXME: sof-marker is for IJG libjpeg 8, should be different for 6.2 */
|
||||
static GstStaticPadTemplate gst_jpeg_dec_sink_pad_template =
|
||||
GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
GST_PAD_SINK,
|
||||
|
@ -81,7 +82,8 @@ GST_STATIC_PAD_TEMPLATE ("sink",
|
|||
GST_STATIC_CAPS ("image/jpeg, "
|
||||
"width = (int) [ " G_STRINGIFY (MIN_WIDTH) ", " G_STRINGIFY (MAX_WIDTH)
|
||||
" ], " "height = (int) [ " G_STRINGIFY (MIN_HEIGHT) ", "
|
||||
G_STRINGIFY (MAX_HEIGHT) " ], " "framerate = (fraction) [ 0/1, MAX ]")
|
||||
G_STRINGIFY (MAX_HEIGHT) " ], framerate = (fraction) [ 0/1, MAX ], "
|
||||
"sof-marker = (int) { 0, 1, 2, 5, 6, 7, 9, 10, 13, 14 }")
|
||||
);
|
||||
|
||||
GST_DEBUG_CATEGORY_STATIC (jpeg_dec_debug);
|
||||
|
|
Loading…
Reference in a new issue