+ if( p_pic->format.i_chroma == VLC_FOURCC('Y','U','V','A') )
+ {
+ /* We don't want to invert the alpha plane */
+ i_planes = p_pic->i_planes - 1;
+ vlc_memcpy(
+ p_outpic->p[A_PLANE].p_pixels, p_pic->p[A_PLANE].p_pixels,
+ p_pic->p[A_PLANE].i_pitch * p_pic->p[A_PLANE].i_lines );
+ }
+ else
+ {
+ i_planes = p_pic->i_planes;
+ }
+
+ for( i_index = 0 ; i_index < i_planes ; i_index++ )