Commit 8186908d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vout: fix intermediate chroma when converting from YUVP then scaling

parent 9f75d4ac
...@@ -844,6 +844,8 @@ static void SpuRenderRegion(spu_t *spu, ...@@ -844,6 +844,8 @@ static void SpuRenderRegion(spu_t *spu,
{ {
scale->fmt_in.video = picture->format; scale->fmt_in.video = picture->format;
scale->fmt_out.video = picture->format; scale->fmt_out.video = picture->format;
if (using_palette)
scale->fmt_in.video.i_chroma = chroma_list[0];
if (convert_chroma) if (convert_chroma)
scale->fmt_out.i_codec = scale->fmt_out.i_codec =
scale->fmt_out.video.i_chroma = chroma_list[0]; scale->fmt_out.video.i_chroma = chroma_list[0];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment