summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorLeo Liu <leo.liu@amd.com>2017-08-25 13:17:40 -0400
committerLeo Liu <leo.liu@amd.com>2017-09-02 21:33:11 -0400
commit3b02a8e9ddf105c2c0cc8a4a57df1a21affeb070 (patch)
tree9e03c8bd65d4eaa6c4e632cbdfa2cec2f8d956fa /src/gallium
parent2b2c61f0df5c18355b65772d21be36339ba5e1d9 (diff)
radeon/uvd: fix MJPEG quantization table index
Fixes: 130d1f456b8 ("radeon/uvd: reconstruct MJPEG bitstream") Signed-off-by: Leo Liu <leo.liu@amd.com>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/radeon/radeon_uvd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/radeon_uvd.c b/src/gallium/drivers/radeon/radeon_uvd.c
index 648a493b59c..228f654af1b 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);
size += 64;
}