Commit 7c1477a3 authored by Antoine Cellerier's avatar Antoine Cellerier

If mosaic item has an alpha plane keep it even after resizing the picture.

parent 4db956cd
No related merge requests found
......@@ -597,7 +597,11 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
fmt_in.i_height = p_es->p_picture->format.i_height;
fmt_in.i_width = p_es->p_picture->format.i_width;
fmt_out.i_chroma = VLC_FOURCC('I','4','2','0');
if( fmt_in.i_chroma == VLC_FOURCC('Y','U','V','A') ||
fmt_in.i_chroma == VLC_FOURCC('R','G','B','A') )
fmt_out.i_chroma = VLC_FOURCC('Y','U','V','A');
else
fmt_out.i_chroma = VLC_FOURCC('I','4','2','0');
fmt_out.i_width = col_inner_width;
fmt_out.i_height = row_inner_height;
......
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