]> git.sesse.net Git - vlc/commitdiff
Fixed i_pixel_pitch value for YUVP and packed YUV.
authorLaurent Aimar <fenrir@videolan.org>
Tue, 15 Sep 2009 20:41:06 +0000 (22:41 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Tue, 15 Sep 2009 20:42:08 +0000 (22:42 +0200)
src/video_output/vout_pictures.c

index 9e57973f7e495b69661dc637ddd4126c56db9aff..f07d6c8859ae08c5a4c7e703cb53cbd5e64b13d4 100644 (file)
@@ -825,7 +825,7 @@ int picture_Setup( picture_t *p_picture, vlc_fourcc_t i_chroma, int i_width, int
         p_picture->p->i_visible_lines = i_height;
         p_picture->p->i_pitch = i_width_aligned;
         p_picture->p->i_visible_pitch = i_width;
-        p_picture->p->i_pixel_pitch = 8;
+        p_picture->p->i_pixel_pitch = 1;
         p_picture->i_planes = 1;
         break;
 
@@ -846,7 +846,7 @@ int picture_Setup( picture_t *p_picture, vlc_fourcc_t i_chroma, int i_width, int
         p_picture->p->i_visible_lines = i_height;
         p_picture->p->i_pitch = i_width_aligned * 2;
         p_picture->p->i_visible_pitch = i_width * 2;
-        p_picture->p->i_pixel_pitch = 4;
+        p_picture->p->i_pixel_pitch = 2;
         p_picture->i_planes = 1;
         break;