mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
media: hantro: HEVC: Fix chroma offset computation
The chroma offset depends of the bitstream depth. Make sure that ctx->bit_depth is used to compute it. Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com> Reviewed-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
8a438580a0
commit
f64853ad7f
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@
|
|||
|
||||
static size_t hantro_hevc_chroma_offset(struct hantro_ctx *ctx)
|
||||
{
|
||||
return ctx->dst_fmt.width * ctx->dst_fmt.height;
|
||||
return ctx->dst_fmt.width * ctx->dst_fmt.height * ctx->bit_depth / 8;
|
||||
}
|
||||
|
||||
static size_t hantro_hevc_motion_vectors_offset(struct hantro_ctx *ctx)
|
||||
|
|
Loading…
Reference in a new issue