]> git.sesse.net Git - vlc/commitdiff
Support blending of RGBA and YUVA subpicture in addition to YUVP
authorJean-Paul Saman <jpsaman@videolan.org>
Thu, 18 Oct 2007 22:09:48 +0000 (22:09 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Thu, 18 Oct 2007 22:09:48 +0000 (22:09 +0000)
src/video_output/vout_subpictures.c

index 680ce41ac30b192fb8b0a0f29321df013f76cf67..1e3e24e501619883f655812be9ff22908d3d667a 100644 (file)
@@ -547,8 +547,7 @@ void spu_RenderSubpictures( spu_t *p_spu, video_format_t *p_fmt,
                 p_spu->p_blend->fmt_out.video.i_y_offset = 0;
             p_spu->p_blend->fmt_out.video.i_aspect = p_fmt->i_aspect;
             p_spu->p_blend->fmt_out.video.i_chroma = p_fmt->i_chroma;
-            p_spu->p_blend->fmt_in.video.i_chroma = VLC_FOURCC('Y','U','V','P');
-            /* FIXME: We'll also be using it for YUVA and RGBA blending ... */
+            p_spu->p_blend->fmt_in.video.i_chroma = p_region->fmt.i_chroma;
 
             p_spu->p_blend->p_module =
                 module_Need( p_spu->p_blend, "video blending", 0, 0 );