diff options
author | Martin Vignali <martin.vignali@gmail.com> | 2018-10-22 23:55:14 +0300 |
---|---|---|
committer | Martin Vignali <martin.vignali@gmail.com> | 2018-10-24 22:21:10 +0300 |
commit | 3db33b446f3cd1d3b7142b0ab0e4dcbbec968ee9 (patch) | |
tree | 1d36a87af6d8a43d7e13c24ee439d5d45c512819 /libswscale/utils.c | |
parent | 66974311b1da2e854aaa6320648e7f0bdbbb84ea (diff) |
swscale/utils : simplify unscaled initial test for float pixfmt
Diffstat (limited to 'libswscale/utils.c')
-rw-r--r-- | libswscale/utils.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c index cb40164a95..d5913ed733 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -1810,8 +1810,7 @@ av_cold int sws_init_context(SwsContext *c, SwsFilter *srcFilter, /* unscaled special cases */ if (unscaled && !usesHFilter && !usesVFilter && (c->srcRange == c->dstRange || isAnyRGB(dstFormat) || - srcFormat == AV_PIX_FMT_GRAYF32 && dstFormat == AV_PIX_FMT_GRAY8 || - srcFormat == AV_PIX_FMT_GRAY8 && dstFormat == AV_PIX_FMT_GRAYF32)) { + isFloat(srcFormat) || isFloat(dstFormat))){ ff_get_unscaled_swscale(c); if (c->swscale) { |