mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-12-13 22:58:40 +00:00
swscale/utils : simplify unscaled initial test for float pixfmt
This commit is contained in:
parent
66974311b1
commit
3db33b446f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user