mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-04 02:30:36 +01:00
glamor: xv: Fix invalid accessing of plane attributes for NV12
NV12 only has 2 planes.
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
(cherry picked from commit 0076671e24)
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1636>
This commit is contained in:
parent
bec42f6e0b
commit
8d3b4fa245
1 changed files with 2 additions and 2 deletions
|
|
@ -291,10 +291,10 @@ glamor_xv_query_image_attributes(int id,
|
|||
pitches[0] = size;
|
||||
size *= *h;
|
||||
if (offsets)
|
||||
offsets[1] = offsets[2] = size;
|
||||
offsets[1] = size;
|
||||
tmp = ALIGN(*w, 4);
|
||||
if (pitches)
|
||||
pitches[1] = pitches[2] = tmp;
|
||||
pitches[1] = tmp;
|
||||
tmp *= (*h >> 1);
|
||||
size += tmp;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue