From c85cbc8ff90c967eccfe56bdce5b6ed29646df2e Mon Sep 17 00:00:00 2001 From: Niels Elburg Date: Tue, 21 Jun 2005 19:42:02 +0000 Subject: [PATCH] Fix small bug in VIMS 330 (wrong stride) git-svn-id: svn://code.dyne.org/veejay/trunk@353 eb8d1916-c9e9-0310-b8de-cf0c9472ead5 --- veejay-current/libel/pixbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/veejay-current/libel/pixbuf.c b/veejay-current/libel/pixbuf.c index b0887b88..b4d89f9a 100644 --- a/veejay-current/libel/pixbuf.c +++ b/veejay-current/libel/pixbuf.c @@ -306,7 +306,7 @@ int vj_picture_save( void *picture, uint8_t **frame, int w, int h , int fmt ) } pict2.data[0] = (uint8_t*) gdk_pixbuf_get_pixels( img_ );; - pict2.linesize[0] = w; + pict2.linesize[0] = w * 3; img_convert( &pict2, PIX_FMT_RGB24, &pict1, (fmt == 1 ? PIX_FMT_YUV420P: PIX_FMT_YUV422P),