mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-09 01:07:01 +02:00
sws: simplify setting sliceDir
This commit is contained in:
parent
ff753f41dd
commit
a91e6c927e
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user