Commit 3bb1c58e authored by Reimar Döffinger's avatar Reimar Döffinger

Avoid incorrect deprecated pixel format warning.

Should only be printed if a "JPEG" format was used,
not for e.g. XYZ.
Signed-off-by: 's avatarReimar Döffinger <Reimar.Doeffinger@gmx.de>
parent 1ef82cc6
...@@ -1064,13 +1064,14 @@ av_cold int sws_init_context(SwsContext *c, SwsFilter *srcFilter, ...@@ -1064,13 +1064,14 @@ av_cold int sws_init_context(SwsContext *c, SwsFilter *srcFilter,
handle_jpeg(&srcFormat); handle_jpeg(&srcFormat);
handle_jpeg(&dstFormat); handle_jpeg(&dstFormat);
if(srcFormat!=c->srcFormat || dstFormat!=c->dstFormat)
av_log(c, AV_LOG_WARNING, "deprecated pixel format used, make sure you did set range correctly\n");
handle_0alpha(&srcFormat); handle_0alpha(&srcFormat);
handle_0alpha(&dstFormat); handle_0alpha(&dstFormat);
handle_xyz(&srcFormat); handle_xyz(&srcFormat);
handle_xyz(&dstFormat); handle_xyz(&dstFormat);
if(srcFormat!=c->srcFormat || dstFormat!=c->dstFormat){ if(srcFormat!=c->srcFormat || dstFormat!=c->dstFormat){
av_log(c, AV_LOG_WARNING, "deprecated pixel format used, make sure you did set range correctly\n");
c->srcFormat= srcFormat; c->srcFormat= srcFormat;
c->dstFormat= dstFormat; c->dstFormat= dstFormat;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment