]> git.sesse.net Git - vlc/commitdiff
If mosaic item has an alpha plane keep it even after resizing the picture.
authorAntoine Cellerier <dionoea@videolan.org>
Sun, 24 Aug 2008 14:00:37 +0000 (16:00 +0200)
committerAntoine Cellerier <dionoea@videolan.org>
Sun, 24 Aug 2008 14:02:04 +0000 (16:02 +0200)
modules/video_filter/mosaic.c

index 379b25ed12f7d62391cf539873068b649e677673..9dc28d70529b8b12ec007d3222ec1d0bd8e86424 100644 (file)
@@ -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;