mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-30 22:00:51 +08:00
swscale/ops: add missing check on SwsDitherOp.y_offset
Doesn't actually affect anything in the currently generated ops lists. Signed-off-by: Niklas Haas <git@haasn.dev>
This commit is contained in:
@@ -363,8 +363,11 @@ void ff_sws_op_list_update_comps(SwsOpList *ops)
|
||||
break;
|
||||
case SWS_OP_DITHER:
|
||||
/* Strip zero flag because of the nonzero dithering offset */
|
||||
for (int i = 0; i < 4; i++)
|
||||
for (int i = 0; i < 4; i++) {
|
||||
if (op->dither.y_offset[i] < 0)
|
||||
continue;
|
||||
op->comps.flags[i] = prev.flags[i] & ~SWS_COMP_ZERO;
|
||||
}
|
||||
break;
|
||||
case SWS_OP_UNPACK:
|
||||
for (int i = 0; i < 4; i++) {
|
||||
|
||||
Reference in New Issue
Block a user