aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/swscale.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-05-20 17:03:18 +0200
committerAnton Khirnov <anton@khirnov.net>2021-07-03 16:09:21 +0200
commita91e6c927e526f6a24336379148ff0e399afa852 (patch)
treec857f5a16ebee0b3bed8f1f0a8fd915fb1a63c09 /libswscale/swscale.c
parentff753f41dd3dbe7b71c314ecfe4b9dd89e059f57 (diff)
downloadffmpeg-a91e6c927e526f6a24336379148ff0e399afa852.tar.gz
sws: simplify setting sliceDir
Diffstat (limited to 'libswscale/swscale.c')
-rw-r--r--libswscale/swscale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 62a172d4ec..05544ea9fb 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -918,7 +918,7 @@ int attribute_align_arg sws_scale(struct SwsContext *c,
return AVERROR(EINVAL);
}
- if (srcSliceY == 0) c->sliceDir = 1; else c->sliceDir = -1;
+ c->sliceDir = (srcSliceY == 0) ? 1 : -1;
}
if (usePal(c->srcFormat))