media: cedrus: Use correct H264 8x8 scaling list
authorJonas Karlman <jonas@kwiboo.se>
Tue, 29 Oct 2019 00:00:52 +0000 (01:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Jan 2020 18:48:58 +0000 (19:48 +0100)
commit a6b8feae7c88343212686120740cf7551dd16e08 upstream.

Documentation now defines the expected order of scaling lists,
change to use correct indices.

Fixes: 6eb9b758e307 ("media: cedrus: Add H264 decoding support")
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/sunxi/cedrus/cedrus_h264.c

index 08c6c9c410cc37e8f1ad6207cb790d920844379b..c07526c12629209fb82f343284c44e9d8aab42b3 100644 (file)
@@ -244,8 +244,8 @@ static void cedrus_write_scaling_lists(struct cedrus_ctx *ctx,
                               sizeof(scaling->scaling_list_8x8[0]));
 
        cedrus_h264_write_sram(dev, CEDRUS_SRAM_H264_SCALING_LIST_8x8_1,
-                              scaling->scaling_list_8x8[3],
-                              sizeof(scaling->scaling_list_8x8[3]));
+                              scaling->scaling_list_8x8[1],
+                              sizeof(scaling->scaling_list_8x8[1]));
 
        cedrus_h264_write_sram(dev, CEDRUS_SRAM_H264_SCALING_LIST_4x4,
                               scaling->scaling_list_4x4,