[Spice-devel] JPEG error - Application transferred too few scanlines
alevy at redhat.com
Mon Aug 1 06:16:34 PDT 2011
On Mon, Aug 01, 2011 at 02:15:07PM +0200, Andrea Celestino wrote:
> Ok thanks.
> I have another question. I want to try to separate the streaming data
> and create a sperate channel for this kind of data. Do you think that
> is better to work with the new client or with spicec?
Probably better with the new client.
> 2011/7/28 Christophe Fergeau <cfergeau at redhat.com>:
> > Hey,
> > On Wed, Jul 27, 2011 at 06:11:32PM +0200, Christophe Fergeau wrote:
> >> Yep, I broke that in master, it's caused by the mjpeg changes, the "height"
> >> used when calling mjpeg_encoder_new is 1 byte less than the height which is
> >> then used in the loop around mjpeg_encoder_encode_scanline.
> > I went further debugging that, image sizes get rounded to the next even
> > number. I didn't notice that when I wrote the code, so the loop sending the
> > image to encode line by line to libjpeg uses the non-rounded height for
> > odd-sized images. And then libjpeg is right in complaining that one line is
> > missing :) The (ugly) attached patch seems to be working as a workaround,
> > but I'll come up with a better fix.
> > Christophe
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
More information about the Spice-devel