]> git.sesse.net Git - vlc/blobdiff - modules/video_filter/ripple.c
Use gray for the place holder color on packed formats (else you'd end up
[vlc] / modules / video_filter / ripple.c
index e3880561d88ccb5a17043d96ff065162c9ab3955..6963ba3da9faceb3d332107837f1da6a4a26ac5a 100644 (file)
@@ -143,7 +143,8 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
         uint8_t black_pixel;
         uint8_t *p_in, *p_out;
 
-        black_pixel = ( i_index == Y_PLANE ) ? 0x00 : 0x80;
+        black_pixel = ( p_pic->i_planes > 1 && i_index == Y_PLANE ) ? 0x00
+                                                                    : 0x80;
 
         i_num_lines = p_pic->p[i_index].i_visible_lines;
         i_pixel_pitch = p_pic->p[i_index].i_pixel_pitch;