]> git.sesse.net Git - vlc/commitdiff
transcode: give proper src fmt for subtitle overlay
authorIlkka Ollakka <ileoo@videolan.org>
Sat, 27 Sep 2014 13:45:15 +0000 (16:45 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Fri, 5 Dec 2014 09:43:08 +0000 (11:43 +0200)
modules/stream_out/transcode/video.c

index 79f9a8170670b59b5dce595a2d235352808f7932..ba2f3de3a1deb19f329df78e93c3b775a376d84c 100644 (file)
@@ -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 */