New submission from Pavel <[email protected]>:

I use ffmpeg to load images. At some point I noticed that some of them show as
random colorful pixel or just plain black. I tried to see what's wrong and ...
everything was ok! So, I had to debug the code to find out what was wrong. It
appears that sws_scale cannot convert from YUV444 to RGB565 and it silently
returns height (which indicates success). I tried to run in debug and it asserts
at the end of yuv2rgbXinC_full.
At the same time, sws_getContext has to fail if sws_scale cannot do its job. 
The original image was 1.5M jpeg file. The attached image is the thumbnail
generated with ffmpeg. Both have that problem when loading into rgb565 surface.

----------
files: 1277771652-pavel1.jpg
messages: 11263
priority: normal
status: new
substatus: new
title: SWScale, does not convert from YUV444 to RGB565
type: bug

________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2113>
________________________________________________

<<attachment: 1277771652-pavel1.jpg>>

Reply via email to