[Libav-user] deprecated pixel format used, make sure you did set range correctly

wm4 nfxjfg at googlemail.com
Fri Mar 7 18:44:19 CET 2014


On Fri, 7 Mar 2014 17:54:26 +0100
Robert Krüger <krueger at lesspain.de> wrote:

> Hi,
> 
> you get this warning if you just decode a jpg and scale it using
> swscale. What would be the correct way to get rid of this warning? No
> longer use the YUVJ formats in the mjpeg decoder? Are there any plans
> regarding this?

The YUVJ formats have been deprecated for years now. They _should_ be
removed, but it hasn't happened set. (Yep, the situation is
ridiculous.) For now, you can just either ignore the warning, or change
the pixel format manually from YUVJ the the proper ones. But if you use
swscale, you also have to be set the range yourself, or the result will
be incorrect.


More information about the Libav-user mailing list