[vlc-devel] commit: Fixed i_pixel_pitch value for YUVP and packed YUV. (Laurent Aimar )

git version control git at videolan.org
Tue Sep 15 22:42:31 CEST 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Sep 15 22:41:06 2009 +0200| [a9bb5264ad03e41a151ef841fdb3082bf7f3ee4e] | committer: Laurent Aimar 

Fixed i_pixel_pitch value for YUVP and packed YUV.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a9bb5264ad03e41a151ef841fdb3082bf7f3ee4e
---

 src/video_output/vout_pictures.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/video_output/vout_pictures.c b/src/video_output/vout_pictures.c
index 9e57973..f07d6c8 100644
--- a/src/video_output/vout_pictures.c
+++ b/src/video_output/vout_pictures.c
@@ -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;
 




More information about the vlc-devel mailing list