You've already forked FFmpeg
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:
@@ -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))
|
||||
|
Reference in New Issue
Block a user