[vlc-devel] [PATCH 2/4] logo: keep the colorimetry parameter from the decoded picture in the region
Steve Lhomme
robux4 at ycbcr.xyz
Mon Jun 3 14:22:38 CEST 2019
---
modules/spu/logo.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/spu/logo.c b/modules/spu/logo.c
index 9910b185f8..330fa5fb18 100644
--- a/modules/spu/logo.c
+++ b/modules/spu/logo.c
@@ -385,6 +385,10 @@ static subpicture_t *FilterSub( filter_t *p_filter, vlc_tick_t date )
fmt.i_width = fmt.i_visible_width = p_pic->p[Y_PLANE].i_visible_pitch;
fmt.i_height = fmt.i_visible_height = p_pic->p[Y_PLANE].i_visible_lines;
fmt.i_x_offset = fmt.i_y_offset = 0;
+ fmt.transfer = p_pic->format.transfer;
+ fmt.primaries = p_pic->format.primaries;
+ fmt.space = p_pic->format.space;
+ fmt.color_range = p_pic->format.color_range;
p_region = subpicture_region_New( &fmt );
if( !p_region )
{
--
2.17.1
More information about the vlc-devel
mailing list