mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
jpeg2000parse: support 2-component images
https://bugzilla.gnome.org/show_bug.cgi?id=784797
This commit is contained in:
parent
e10276a616
commit
45dbe864e2
1 changed files with 1 additions and 1 deletions
|
@ -481,7 +481,7 @@ gst_jpeg2000_parse_handle_frame (GstBaseParse * parse,
|
|||
if (!gst_byte_reader_get_uint16_be (&reader, &numcomps))
|
||||
goto beach;
|
||||
|
||||
if (numcomps == 2 || numcomps > GST_JPEG2000_PARSE_MAX_SUPPORTED_COMPONENTS) {
|
||||
if (numcomps == 0 || numcomps > GST_JPEG2000_PARSE_MAX_SUPPORTED_COMPONENTS) {
|
||||
GST_ELEMENT_ERROR (jpeg2000parse, STREAM, DECODE, NULL,
|
||||
("Unsupported number of components %d", numcomps));
|
||||
ret = GST_FLOW_NOT_NEGOTIATED;
|
||||
|
|
Loading…
Reference in a new issue