[vlc-commits] transcode: give proper src fmt for subtitle overlay

Ilkka Ollakka git at videolan.org
Fri Dec 5 10:50:56 CET 2014


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sat Sep 27 16:45:15 2014 +0300| [f06ef3b4e5399e02ec7666537315472995f777f5] | committer: Ilkka Ollakka

transcode: give proper src fmt for subtitle overlay

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f06ef3b4e5399e02ec7666537315472995f777f5
---

 modules/stream_out/transcode/video.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c
index 79f9a81..ba2f3de 100644
--- a/modules/stream_out/transcode/video.c
+++ b/modules/stream_out/transcode/video.c
@@ -648,7 +648,8 @@ static void OutputFrame( sout_stream_t *p_stream, picture_t *p_pic, sout_stream_
             fmt.i_y_offset       = 0;
         }
 
-        subpicture_t *p_subpic = spu_Render( p_sys->p_spu, NULL, &fmt, &fmt,
+        subpicture_t *p_subpic = spu_Render( p_sys->p_spu, NULL, &fmt,
+                                             &id->p_decoder->fmt_out.video,
                                              p_pic->date, p_pic->date, false );
 
         /* Overlay subpicture */



More information about the vlc-commits mailing list