[vlc-commits] vout: fix intermediate chroma when converting from YUVP then scaling

Rémi Denis-Courmont git at videolan.org
Thu Nov 7 22:24:23 CET 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Nov  7 23:13:38 2013 +0200| [8186908d9c930477e7be33e363a2eb15a07835d4] | committer: Rémi Denis-Courmont

vout: fix intermediate chroma when converting from YUVP then scaling

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

 src/video_output/vout_subpictures.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c
index 90e6708..e380694 100644
--- a/src/video_output/vout_subpictures.c
+++ b/src/video_output/vout_subpictures.c
@@ -844,6 +844,8 @@ static void SpuRenderRegion(spu_t *spu,
             {
                 scale->fmt_in.video  = picture->format;
                 scale->fmt_out.video = picture->format;
+                if (using_palette)
+                    scale->fmt_in.video.i_chroma = chroma_list[0];
                 if (convert_chroma)
                     scale->fmt_out.i_codec        =
                     scale->fmt_out.video.i_chroma = chroma_list[0];



More information about the vlc-commits mailing list