]> git.sesse.net Git - narabu/commitdiff
Fix an IDCT error.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 7 Oct 2017 23:08:25 +0000 (01:08 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 7 Oct 2017 23:08:25 +0000 (01:08 +0200)
decoder.shader

index 3b721264b4026f5a6b9cbb6e9c6a5749b15bd30e..616c3e2dfd0896e5cd035bacc42ec0720c5174a1 100644 (file)
@@ -162,8 +162,8 @@ void idct_1d(inout float y0, inout float y1, inout float y2, inout float y3, ino
        y0 = p6_0 + p6_7;
        y1 = p6_1 + p6_6;
        y2 = p6_2 + p6_5;
-       y3 = p6_3 - p4_4;
-       y4 = p6_3 + p4_4;
+       y3 = p6_3 + p4_4;
+       y4 = p6_3 - p4_4;
        y5 = p6_2 - p6_5;
        y6 = p6_1 - p6_6;
        y7 = p6_0 - p6_7;