[vlc-commits] transcode: only scale if the visible part is scaled

Steve Lhomme git at videolan.org
Mon Oct 5 14:05:21 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at 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;
 



More information about the vlc-commits mailing list