[Bug 700773] gstrtpjpegdepay.c -- index numbering of image components in SOF header off by one

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu May 23 06:35:25 PDT 2013


https://bugzilla.gnome.org/show_bug.cgi?id=700773
  GStreamer | gst-plugins-good | git

--- Comment #4 from midu <codador at web.de> 2013-05-23 13:35:19 UTC ---
In gst_rtp_jpeg_depay_process():

Throw out everything between ..

/* start scan for leading JPEG header garbage
.. and ..
/* end scan for leading JPEG header garbage */


.. and out-comment superfluous debugging tidbits:

    guint8 header[1024];
/*    
    guchar strheader[1024 * 3 + 1];
    memset (strheader, 0, sizeof (strheader));
    GST_INFO_OBJECT (rtpjpegdepay,
        "JPEG header param type %d, precision %d, dri %d", type, precision,
        dri);
*/        
    size = MakeHeaders (header, type, width, height, qtable, precision, dri);
    g_byte_array_append (rtpjpegdepay->hold_buf, header,
        size < 1024 ? size : 1024);
/*
    GST_INFO_OBJECT (rtpjpegdepay, "JPEG header size %d, start of image? %s",
        size, header[0] == 0xff && header[1] == 0xd8 ? "Yup" : "Nope");
*/
    rtpjpegdepay->len_header = size;

/*    
    for (int k = 0; k < size; k++)
      sprintf (strheader + k * 3, "%02x ", header[k]);
    GST_INFO_OBJECT (rtpjpegdepay, "%s", strheader);
*/

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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