1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

sws: simplify setting sliceDir

This commit is contained in:
Anton Khirnov
2021-05-20 17:03:18 +02:00
parent ff753f41dd
commit a91e6c927e

View File

@@ -918,7 +918,7 @@ int attribute_align_arg sws_scale(struct SwsContext *c,
return AVERROR(EINVAL); return AVERROR(EINVAL);
} }
if (srcSliceY == 0) c->sliceDir = 1; else c->sliceDir = -1; c->sliceDir = (srcSliceY == 0) ? 1 : -1;
} }
if (usePal(c->srcFormat)) if (usePal(c->srcFormat))