[vlc-devel] commit: Enabled VC-1/WMV3 DXVA2 support in VLC. (Laurent Aimar )

git version control git at videolan.org
Wed Jan 20 01:19:13 CET 2010


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Jan 17 21:48:08 2010 +0100| [cde322e89b3f15bace624cb9588ee3d5ad498b17] | committer: Laurent Aimar 

Enabled VC-1/WMV3 DXVA2 support in VLC.

It won't do anything until the support is actually added to FFmpeg.

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

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

diff --git a/modules/codec/avcodec/dxva2.c b/modules/codec/avcodec/dxva2.c
index c00a58f..054d6ea 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -161,7 +161,8 @@ static const dxva2_mode_t dxva2_modes[] = {
     {  "Windows Media Video 9 MoComp",          &DXVA2_ModeWMV9_B, 0 },
     {  "Windows Media Video 9 post processing", &DXVA2_ModeWMV9_A, 0 },
 
-    { "VC-1 VLD",             &DXVA2_ModeVC1_D, 0 },
+    { "VC-1 VLD",             &DXVA2_ModeVC1_D, CODEC_ID_VC1 },
+    { "VC-1 VLD",             &DXVA2_ModeVC1_D, CODEC_ID_WMV3 },
     { "VC-1 IDCT",            &DXVA2_ModeVC1_C, 0 },
     { "VC-1 MoComp",          &DXVA2_ModeVC1_B, 0 },
     { "VC-1 post processing", &DXVA2_ModeVC1_A, 0 },
@@ -333,8 +334,7 @@ static int Setup(vlc_va_t *external, void **hw, vlc_fourcc_t *chroma,
         return VLC_EGENERIC;
     /* */
     va->hw.decoder = va->decoder;
-    if (va->codec_id == CODEC_ID_H264)
-        va->hw.cfg = &va->cfg;
+    va->hw.cfg = &va->cfg;
     va->hw.surface_count = va->surface_count;
     va->hw.surface = va->hw_surface;
     for (unsigned i = 0; i < va->surface_count; i++)




More information about the vlc-devel mailing list