[Mesa-dev] [PATCH 1/2] radeon/uvd: fix MJPEG quantization table index
Emil Velikov
emil.l.velikov at gmail.com
Sun Aug 27 17:52:16 UTC 2017
On 25 August 2017 at 18:17, Leo Liu <leo.liu at amd.com> wrote:
> Signed-off-by: Leo Liu <leo.liu at amd.com>
> ---
> src/gallium/drivers/radeon/radeon_uvd.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/radeon/radeon_uvd.c b/src/gallium/drivers/radeon/radeon_uvd.c
> index 648a493b59..228f654af1 100644
> --- a/src/gallium/drivers/radeon/radeon_uvd.c
> +++ b/src/gallium/drivers/radeon/radeon_uvd.c
> @@ -969,7 +969,7 @@ static void get_mjpeg_slice_header(struct ruvd_decoder *dec, struct pipe_mjpeg_p
> continue;
>
> buf[size++] = i;
> - memcpy((buf + size), &pic->quantization_table.quantiser_table, 64);
> + memcpy((buf + size), &pic->quantization_table.quantiser_table[i], 64);
Can you mention a bit in the commit message "The index was missing"
and add a Fixes/stable tag?
There's no point in re-sending, just for ^^. Feel free to squash locally.
Thanks
Emil
More information about the mesa-dev
mailing list