[FFmpeg-cvslog] hwcontext_dxva2: initialize D3DDISPLAYMODEEX correctly

wm4 git at videolan.org
Thu Jan 4 17:49:28 EET 2018


ffmpeg | branch: master | wm4 <nfxjfg at googlemail.com> | Thu Jan  4 15:52:46 2018 +0100| [18fbfd7bf86effb49c0341b37b9c1d73940d688e] | committer: wm4

hwcontext_dxva2: initialize D3DDISPLAYMODEEX correctly

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=18fbfd7bf86effb49c0341b37b9c1d73940d688e
---

 libavutil/hwcontext_dxva2.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavutil/hwcontext_dxva2.c b/libavutil/hwcontext_dxva2.c
index 44ebdbca95..665c2d6d74 100644
--- a/libavutil/hwcontext_dxva2.c
+++ b/libavutil/hwcontext_dxva2.c
@@ -485,6 +485,7 @@ static int dxva2_device_create9ex(AVHWDeviceContext *ctx, UINT adapter)
     if (FAILED(hr))
         return AVERROR_UNKNOWN;
 
+    modeex.Size = sizeof(D3DDISPLAYMODEEX);
     hr = IDirect3D9Ex_GetAdapterDisplayModeEx(d3d9ex, adapter, &modeex, NULL);
     if (FAILED(hr)) {
         IDirect3D9Ex_Release(d3d9ex);



More information about the ffmpeg-cvslog mailing list