media: hantro: Use output buffer width and height for H264 decoding
authorJonas Karlman <jonas@kwiboo.se>
Wed, 6 Nov 2019 22:34:22 +0000 (23:34 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 10 Nov 2019 16:58:45 +0000 (17:58 +0100)
commit79c523291ea22f5b3289d92f180ed6b76fd80502
tree2fa22166f323240c7536da50d68bd712d0a85bd3
parenta8fe996084e358c6f4ec7c51ec28fd3c1ddf68d1
media: hantro: Use output buffer width and height for H264 decoding

Calculations for motion vector buffer offset is based on width and height
from the configured output format, lets use the same values for macroblock
width and height hw regs.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/hantro/hantro_g1_h264_dec.c