[vlc-devel] [PATCH 2/5] transcode: video: have spu original dimensions to match reoriented picture
Francois Cartegnie
fcvlcdev at free.fr
Tue Sep 10 16:11:32 CEST 2019
---
modules/stream_out/transcode/video.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c
index 59c159ea45..ac9c9c2bcd 100644
--- a/modules/stream_out/transcode/video.c
+++ b/modules/stream_out/transcode/video.c
@@ -444,6 +444,10 @@ static picture_t * RenderSubpictures( sout_stream_t *p_stream, sout_stream_id_sy
fmt.i_y_offset = 0;
}
+ /* Ensure our source reference is correctly oriented */
+ if( outfmt.orientation != fmt.orientation )
+ video_format_TransformTo( &outfmt, fmt.orientation );
+
subpicture_t *p_subpic = spu_Render( id->p_spu, NULL, &fmt,
&outfmt, vlc_tick_now(), p_pic->date,
false, false );
--
2.21.0
More information about the vlc-devel
mailing list