Skip to content

Commit

Permalink
VapourSynth/video_output.c: switch to bicubic and accurate scaling
Browse files Browse the repository at this point in the history
this should fix UV-shift in when output RGB format.

Signed-off-by: akarin <[email protected]>
  • Loading branch information
AkarinVS committed Jan 12, 2022
1 parent 5a45ab1 commit 5ca899b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion VapourSynth/video_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 5ca899b

Please sign in to comment.