This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit a09cddc80379108c2e65765b0ea7829b4e936d30 Author: Ramiro Polla <[email protected]> AuthorDate: Mon Mar 2 16:21:29 2026 +0100 Commit: Ramiro Polla <[email protected]> CommitDate: Wed Mar 11 08:05:08 2026 +0000 swscale/tests/swscale: make auxiliary conversions bitexact and accurate_rnd This prevents the propagation of dither_error across frames, and should also improve reproducibility across platforms. Also remove setting of flags for sws_src_dst early on, since it will inevitably be overwritten during the tests. Sponsored-by: Sovereign Tech Fund Signed-off-by: Ramiro Polla <[email protected]> --- libswscale/tests/swscale.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libswscale/tests/swscale.c b/libswscale/tests/swscale.c index eb5d1183e4..e9704cf6fb 100644 --- a/libswscale/tests/swscale.c +++ b/libswscale/tests/swscale.c @@ -548,7 +548,7 @@ static int init_ref(AVFrame *ref, const struct options *opts) } } - ctx->flags = SWS_BILINEAR; + ctx->flags = SWS_BILINEAR | SWS_BITEXACT | SWS_ACCURATE_RND; ret = sws_scale_frame(ctx, ref, rgb); error: @@ -683,9 +683,8 @@ int main(int argc, char **argv) sws_dst_out = sws_alloc_context(); if (!sws_ref_src || !sws_src_dst || !sws_dst_out) goto error; - sws_ref_src->flags = SWS_BILINEAR; - sws_src_dst->flags = SWS_BILINEAR; - sws_dst_out->flags = SWS_BILINEAR; + sws_ref_src->flags = SWS_BILINEAR | SWS_BITEXACT | SWS_ACCURATE_RND; + sws_dst_out->flags = SWS_BILINEAR | SWS_BITEXACT | SWS_ACCURATE_RND; ref = av_frame_alloc(); if (!ref) _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
