diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-12-24 22:47:49 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-12-24 22:47:49 +0100 |
commit | 51fed95dde7abe838cb55188e28f410fded009c7 (patch) | |
tree | 37814a8717b69983423dbb0a21d2f011a6b19a8e /libswscale | |
parent | 691dec62011fe9993809fbc793126b40cac0c584 (diff) | |
download | ffmpeg-51fed95dde7abe838cb55188e28f410fded009c7.tar.gz |
swscale/utils: fix wrong deprecated message with rgb0
Fixes Ticket3242
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/utils.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c index 80c789fef8..b8b95a9fd5 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -1120,13 +1120,14 @@ av_cold int sws_init_context(SwsContext *c, SwsFilter *srcFilter, c->srcRange |= handle_jpeg(&c->srcFormat); c->dstRange |= handle_jpeg(&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"); + if (!c->contrast && !c->saturation && !c->dstFormatBpp) sws_setColorspaceDetails(c, ff_yuv2rgb_coeffs[SWS_CS_DEFAULT], c->srcRange, ff_yuv2rgb_coeffs[SWS_CS_DEFAULT], c->dstRange, 0, 1 << 16, 1 << 16); - 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_formats(c); srcFormat = c->srcFormat; dstFormat = c->dstFormat; |