From: Laurent Aimar Date: Fri, 14 May 2010 20:14:13 +0000 (+0200) Subject: Fixed dxva2 regression when using NV12. X-Git-Tag: 1.2.0-pre1~6657 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=bb5a42a7fc414c2936557ce48270bd82a46b4aaa;p=vlc Fixed dxva2 regression when using NV12. --- diff --git a/modules/codec/avcodec/dxva2.c b/modules/codec/avcodec/dxva2.c index eb29869e9f..df96b3e454 100644 --- a/modules/codec/avcodec/dxva2.c +++ b/modules/codec/avcodec/dxva2.c @@ -384,7 +384,7 @@ static int Extract(vlc_va_t *external, picture_t *picture, AVFrame *ff) }; size_t pitch[2] = { lock.Pitch, - lock.Pitch / 2, + lock.Pitch, }; CopyFromNv12(picture, plane, pitch, va->surface_width, va->surface_height,