[Bug 767512] jpeg2000parse: support j2c and jp2 file formats

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Jun 28 23:39:48 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=767512

--- Comment #49 from boxerab at gmail.com <boxerab at gmail.com> ---
(In reply to Luis de Bethencourt from comment #48)
> There is something here that looks strange:
> 
> +      /* check for missing contiguous code stream box size */
> +      if (j2c_box_id_offset < GST_JPEG2000_PARSE_SIZE_OF_J2C_BOX_SIZE) {
> +        GST_ELEMENT_ERROR (jpeg2000parse, STREAM, DECODE, NULL,
> +            ("Missing contiguous code stream box size for j2c stream"));
> +        ret = GST_FLOW_ERROR;
> +        goto beach;
> +      }
> +
> +      /* check that we have enough bytes for the J2C box size */
> +      if (j2c_box_id_offset < GST_JPEG2000_PARSE_SIZE_OF_J2C_BOX_SIZE) {
> +        *skipsize = gst_byte_reader_get_size (&reader) - num_prefix_bytes;
> +        goto beach;
> +      }
> 
> 
> These two checks are identical, but shouldn't be.

Thanks. Yes, I have a patch to address this issue and a couple of other small
things in the parser.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list