sna/video: Initialise the UV offsets to 0 for packed formats

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2013-08-17 23:37:57 +01:00
parent db41bec0fd
commit f1cbf13bb1
1 changed files with 2 additions and 0 deletions

View File

@ -269,6 +269,8 @@ sna_video_frame_init(struct sna_video *video,
break;
}
frame->pitch[1] = 0;
frame->UBufOffset = 0;
frame->VBufOffset = 0;
}
assert(frame->size);