[vlc-devel] [PATCH 6/8] transcode: only scale if the visible part is scaled
Steve Lhomme
robux4 at ycbcr.xyz
Thu Sep 24 11:50:25 CEST 2020
If the decoder and encoder alignment don't match, the last converter before the
encoder will take care of the alignment.
---
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 c031c35c71e..a3e4c619a50 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;
--
2.26.2
More information about the vlc-devel
mailing list