mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
jifmux: Do not limit the size of the image on 16bits
Use guint instead of guint16 to represent the size of the encoded image, this would make some recombined images lose most of their data and show like a big black image with a small line of content on top. Also adds a minor log message.
This commit is contained in:
parent
f664fd9c04
commit
27333b0ef2
1 changed files with 3 additions and 1 deletions
|
@ -93,7 +93,7 @@ struct _GstJifMuxPrivate
|
|||
|
||||
/* list of GstJifMuxMarker */
|
||||
GList *markers;
|
||||
guint16 scan_size;
|
||||
guint scan_size;
|
||||
const guint8 *scan_data;
|
||||
};
|
||||
|
||||
|
@ -264,6 +264,8 @@ gst_jif_mux_parse_image (GstJifMux * self, GstBuffer * buf)
|
|||
guint16 size = 0;
|
||||
const guint8 *data = NULL;
|
||||
|
||||
GST_LOG_OBJECT (self, "Received buffer of size: %u", GST_BUFFER_SIZE (buf));
|
||||
|
||||
if (!gst_byte_reader_peek_uint8 (&reader, &marker))
|
||||
goto error;
|
||||
|
||||
|
|
Loading…
Reference in a new issue