mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 13:10:10 +01:00
nouveau: Copy m4x4 and m8x8 separately.
Silences Coverity "Out-of-bounds access" defect. Signed-off-by: Vinson Lee <vlee@freedesktop.org>
This commit is contained in:
parent
df06745c5a
commit
57684d52e9
1 changed files with 2 additions and 1 deletions
|
|
@ -363,7 +363,8 @@ nouveau_vp3_fill_picparm_h264_vp(struct nouveau_vp3_decoder *dec,
|
|||
h->field_order_cnt[0] = d->field_order_cnt[0];
|
||||
h->field_order_cnt[1] = d->field_order_cnt[1];
|
||||
memset(h->refs, 0, sizeof(h->refs));
|
||||
memcpy(h->m4x4, d->scaling_lists_4x4, sizeof(h->m4x4) + sizeof(h->m8x8));
|
||||
memcpy(h->m4x4, d->scaling_lists_4x4, sizeof(h->m4x4));
|
||||
memcpy(h->m8x8, d->scaling_lists_8x8, sizeof(h->m8x8));
|
||||
h->u220 = 0;
|
||||
for (i = 0; i < d->num_ref_frames; ++i) {
|
||||
if (!d->ref[i])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue