From a2f19e67cf22d2ff20aedb795d4f23c6788db3e7 Mon Sep 17 00:00:00 2001 From: Niels Elburg Date: Tue, 13 Feb 2007 00:52:47 +0000 Subject: [PATCH] fixed bug in rgbchannel (new bug) git-svn-id: svn://code.dyne.org/veejay/trunk@792 eb8d1916-c9e9-0310-b8de-cf0c9472ead5 --- veejay-current/libvje/effects/rgbchannel.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/veejay-current/libvje/effects/rgbchannel.c b/veejay-current/libvje/effects/rgbchannel.c index eb53d331..f254eed0 100644 --- a/veejay-current/libvje/effects/rgbchannel.c +++ b/veejay-current/libvje/effects/rgbchannel.c @@ -78,7 +78,12 @@ void rgbchannel_apply( VJFrame *frame, int width, int height, int chr, int chg , { unsigned int x,y,i; - yuv_convert_any( frame, rgb_frame_, PIX_FMT_YUV444P, PIX_FMT_RGB24 ); + VJFrame *tmp = yuv_yuv_template( frame->data[0], + frame->data[1], + frame->data[2], + width, height, PIX_FMT_YUV444P ); + + yuv_convert_any( tmp, rgb_frame_, PIX_FMT_YUV444P, PIX_FMT_RGB24 ); int row_stride = width * 3; @@ -113,6 +118,8 @@ void rgbchannel_apply( VJFrame *frame, int width, int height, int chr, int chg , } } - yuv_convert_any( rgb_frame_, frame, PIX_FMT_RGB24, PIX_FMT_YUV444P ); + yuv_convert_any( rgb_frame_, tmp, PIX_FMT_RGB24, PIX_FMT_YUV444P ); + + free(tmp); }