Commit bb5a42a7 authored by Laurent Aimar's avatar Laurent Aimar

Fixed dxva2 regression when using NV12.

parent 53fb6484
...@@ -384,7 +384,7 @@ static int Extract(vlc_va_t *external, picture_t *picture, AVFrame *ff) ...@@ -384,7 +384,7 @@ static int Extract(vlc_va_t *external, picture_t *picture, AVFrame *ff)
}; };
size_t pitch[2] = { size_t pitch[2] = {
lock.Pitch, lock.Pitch,
lock.Pitch / 2, lock.Pitch,
}; };
CopyFromNv12(picture, plane, pitch, CopyFromNv12(picture, plane, pitch,
va->surface_width, va->surface_height, va->surface_width, va->surface_height,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment