[PATCH] dynamicly allocate jpeg data in jpeg2yuv ([Mjpeg-users] jpeg2yuv: Corrupt JPEG data: premature end of data segment)

2006-05-27 Thread Gert Vervoort
Hi, The patch below removes the hard coded image size from jpeg2yuv. This makes it possible to decode bigger jpegs, e.g. photos from a digital camera. Gert --- lavtools/jpeg2yuv.c.12006-05-27 13:24:12.0 +0200 +++ lavtools/jpeg2yuv.c2006-05-27 13:50:27.0 +0200 @@ -42,8

Re: [Mjpeg-users] jpeg2yuv: Corrupt JPEG data: premature end of data segment

2006-05-27 Thread Gert Vervoort
Hi, While looking through the jpeg2yuv source code, I noticed that the file size of the jpeg images is obtained by reading MAXPIXELS bytes from the jpeg file: jpegsize = fread(jpegdata, sizeof(unsigned char), MAXPIXELS, jpegfile); And MAXPIXELS is defined as 1280x1024 pixels:

[Mjpeg-users] jpeg2yuv: Corrupt JPEG data: premature end of data segment

2006-05-27 Thread Gert Vervoort
Hi, While trying to convert some of the photos of my new digital camera (Canon Powershot S3 IS) to DVD, it seems jpeg2yuv has problems decoding these jpegs. Because, it used to work for me in the past, I tried some photos from my old camera (Canon Powershot A40), these gave the same result.