From 5ca899bc981e4970a0c0ded091ebe52a46f1f92d Mon Sep 17 00:00:00 2001 From: akarin Date: Thu, 13 Jan 2022 02:24:42 +0900 Subject: [PATCH] VapourSynth/video_output.c: switch to bicubic and accurate scaling this should fix UV-shift in when output RGB format. Signed-off-by: akarin --- VapourSynth/video_output.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/VapourSynth/video_output.c b/VapourSynth/video_output.c index 4b303b0a..47780e9a 100644 --- a/VapourSynth/video_output.c +++ b/VapourSynth/video_output.c @@ -991,7 +991,8 @@ int vs_setup_video_rendering } vs_vohp->direct_rendering &= vs_check_dr_available( ctx, ctx->pix_fmt ); int (*dr_get_buffer)( struct AVCodecContext *, AVFrame *, int ) = vs_vohp->direct_rendering ? vs_video_get_buffer : NULL; - setup_video_rendering( lw_vohp, SWS_FAST_BILINEAR, + setup_video_rendering( lw_vohp, + SWS_FULL_CHR_H_INT | SWS_FULL_CHR_H_INP | SWS_ACCURATE_RND | SWS_BICUBIC, width, height, output_pixel_format, ctx, dr_get_buffer ); if( vs_vohp->variable_info )