diff options
author | Thiago Santos <thiago.sousa.santos@collabora.co.uk> | 2010-09-02 11:18:27 -0300 |
---|---|---|
committer | Thiago Santos <thiago.sousa.santos@collabora.co.uk> | 2010-09-05 09:15:55 -0300 |
commit | 27333b0ef2a39751cf56e2ac8a94428fcc5e9b1b (patch) | |
tree | 5ffefe6a7f436014c78cc349db63ed89b32fa022 | |
parent | f664fd9c04c024ce1acdafddb48fffd9a1c3e1b7 (diff) |
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.
-rw-r--r-- | gst/jpegformat/gstjifmux.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/jpegformat/gstjifmux.c b/gst/jpegformat/gstjifmux.c index 0cb025603..8be243a07 100644 --- a/gst/jpegformat/gstjifmux.c +++ b/gst/jpegformat/gstjifmux.c @@ -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; |