[Spice-devel] JPEG error - Application transferred too few scanlines

Andrea Celestino celestino.andrea at gmail.com
Mon Aug 1 05:15:07 PDT 2011


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?

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
>


More information about the Spice-devel mailing list