[vlc-commits] commit: Fixed dxva2 regression when using NV12. (Laurent Aimar )

git at videolan.org git at videolan.org
Fri May 14 22:34:09 CEST 2010


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Fri May 14 22:14:13 2010 +0200| [bb5a42a7fc414c2936557ce48270bd82a46b4aaa] | committer: Laurent Aimar 

Fixed dxva2 regression when using NV12.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bb5a42a7fc414c2936557ce48270bd82a46b4aaa
---

 modules/codec/avcodec/dxva2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/codec/avcodec/dxva2.c b/modules/codec/avcodec/dxva2.c
index eb29869..df96b3e 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,



More information about the vlc-commits mailing list