[vlc-commits] vout_subpictures: make sure each region has some colorspace defined

Steve Lhomme git at videolan.org
Fri Apr 13 13:01:19 CEST 2018


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Apr 13 12:32:57 2018 +0200| [bd7c556e4af70499182d89d65938b0c4300465c5] | committer: Hugo Beauzée-Luyssen

vout_subpictures: make sure each region has some colorspace defined

(cherry picked from commit fe213ddb693811ba28d06b350f3a4e11d40dc4f9)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

 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 0a1b9e6808..534d59e460 100644
--- a/src/video_output/vout_subpictures.c
+++ b/src/video_output/vout_subpictures.c
@@ -684,6 +684,8 @@ static void SpuRenderRegion(spu_t *spu,
             goto exit;
     }
 
+    video_format_AdjustColorSpace(&region->fmt);
+
     /* Force palette if requested
      * FIXME b_force_palette and force_crop are applied to all subpictures using palette
      * instead of only the right one (being the dvd spu).



More information about the vlc-commits mailing list