From d774b460770d9433a483367da59d9241e085991b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 4 Jul 2010 17:26:03 +0200 Subject: [PATCH] ffmpegcolorspace: Use correct Y offset for the YUY2 -> RGB conversions Fixes bug #623530. --- gst/ffmpegcolorspace/imgconvert_template.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/ffmpegcolorspace/imgconvert_template.h b/gst/ffmpegcolorspace/imgconvert_template.h index e9b46a420b..c06cd280ac 100644 --- a/gst/ffmpegcolorspace/imgconvert_template.h +++ b/gst/ffmpegcolorspace/imgconvert_template.h @@ -80,7 +80,7 @@ static void glue (yuv422_to_, RGB_NAME)(AVPicture *dst, const AVPicture *src, RGB_OUT(d1, r, g, b); d1 += BPP; - YUV_TO_RGB2_CCIR(r, g, b, s1[1]); + YUV_TO_RGB2_CCIR(r, g, b, s1[2]); RGB_OUT(d1, r, g, b); d1 += BPP;