vlc | branch: master | Steve Lhomme <rob...@ycbcr.xyz> | Tue Sep 22 15:55:43 2020 +0200| [f7d30661e100f712404bae518c18e46f06a68e09] | committer: Steve Lhomme
transcode: only scale if the visible part is scaled If the decoder and encoder alignment don't match, the last converter before the encoder will take care of the alignment. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f7d30661e100f712404bae518c18e46f06a68e09 --- modules/stream_out/transcode/video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c index c031c35c71..a3e4c619a5 100644 --- a/modules/stream_out/transcode/video.c +++ b/modules/stream_out/transcode/video.c @@ -279,8 +279,8 @@ static int transcode_video_set_conversions( sout_stream_t *p_stream, .sys = id, }; - const bool b_do_scale = (*pp_src)->video.i_width != p_dst->video.i_width || - (*pp_src)->video.i_height != p_dst->video.i_height; + const bool b_do_scale = (*pp_src)->video.i_visible_width != p_dst->video.i_visible_width || + (*pp_src)->video.i_visible_height != p_dst->video.i_visible_height; const bool b_do_chroma = (*pp_src)->video.i_chroma != p_dst->video.i_chroma; const bool b_do_orient = ((*pp_src)->video.orientation != ORIENT_NORMAL) && b_reorient; _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits