Skip to content

media_libva: fix iHD decoder dump NV12 format UV error issue. #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 22, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion media_driver/linux/common/ddi/media_libva.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4297,7 +4297,11 @@ VAStatus DdiMedia_CreateImage(
pVAImg->format.bits_per_pixel = format->bits_per_pixel;
pVAImg->width = width;
pVAImg->height = height;
pVAImg->data_size = iPitch * height * 3 / 2;
#if UFO_GRALLOC_NEW_FORMAT
pVAImg->data_size = iPitch * MOS_ALIGN_CEIL(height,64) * 3 / 2;
#else
pVAImg->data_size = iPitch * MOS_ALIGN_CEIL(height,32) * 3 / 2;
#endif
pVAImg->num_planes = 2;
pVAImg->pitches[0] = iPitch;
pVAImg->pitches[1] =
Expand Down