ffmpegcolorspace: Use correct Y offset for YVYU -> RGB conversions
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Sun, 4 Jul 2010 15:27:25 +0000 (17:27 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sun, 4 Jul 2010 15:40:11 +0000 (17:40 +0200)
Fixes bug #623530.

gst/ffmpegcolorspace/imgconvert_template.h

index c06cd28..04ff788 100644 (file)
@@ -119,7 +119,7 @@ static void glue (yvyu422_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;