[Ffmpeg-devel] broken decode of a jpeg

Måns Rullgård mru
Tue Nov 15 21:22:47 CET 2005


Luca Ognibene <luogni at tin.it> writes:

> This jpeg is not decoded right with ffmpeg. 
> I've tried several other apps and they work all fine. I'm attaching
> to this email a test program and a jpeg.
>
> gcc -o decode decode.c  `pkg-config --libs --cflags libavcodec`
> ./decode image.jpg
> eog test0.pgm
>
> The decoded frame is compltely gray. If someone can help me fixing this
> bug.. Any comment would be helpful :)

That JPEG uses an usual encoding with the components stored
separately, and lavc doesn't know how to decode this.  Sending it
through jpegtran fixes it losslessly.

-- 
M?ns Rullg?rd
mru at inprovide.com





More information about the ffmpeg-devel mailing list