This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 915523e136a65707f0092739471bd384bfeeb999 Author: Niklas Haas <[email protected]> AuthorDate: Fri Mar 27 19:14:56 2026 +0100 Commit: Niklas Haas <[email protected]> CommitDate: Sun Mar 29 12:10:38 2026 +0200 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 <[email protected]> --- libswscale/ops.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libswscale/ops.c b/libswscale/ops.c index d86d8b0239..c281305766 100644 --- a/libswscale/ops.c +++ b/libswscale/ops.c @@ -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++) { _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
