]> git.sesse.net Git - ffmpeg/commitdiff
scale_vulkan: correctly copy the colormatrix
authorLynne <dev@lynne.ee>
Mon, 6 Apr 2020 18:15:51 +0000 (19:15 +0100)
committerLynne <dev@lynne.ee>
Mon, 6 Apr 2020 18:16:35 +0000 (19:16 +0100)
libavfilter/vf_scale_vulkan.c

index c5c64ae96c81307941b60fd0b5dfe4c5afbb3498..4f1e484bc9aa48b8cd1f51fa69a61f7661aae404 100644 (file)
@@ -251,7 +251,7 @@ static av_cold int init_filter(AVFilterContext *ctx, AVFrame *in)
 
         for (int y = 0; y < 3; y++)
             for (int x = 0; x < 3; x++)
-                par->yuv_matrix[x][y] = tmp_mat[y][x];
+                par->yuv_matrix[x][y] = tmp_mat[x][y];
 
         par->yuv_matrix[3][3] = 1.0;