[vlc-commits] dxva2: access the IDirectXVideoDecoder pointer from the right picture context

Steve Lhomme git at videolan.org
Fri Oct 18 14:50:32 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Oct 18 13:47:14 2019 +0200| [ffa3beb06b3121e98b90d4373bea3277b3246678] | committer: Steve Lhomme

dxva2: access the IDirectXVideoDecoder pointer from the right picture context

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

 modules/codec/avcodec/dxva2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/dxva2.c b/modules/codec/avcodec/dxva2.c
index eed65180e3..0972725f01 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -237,7 +237,7 @@ static int Get(vlc_va_t *va, picture_t *pic, uint8_t **data)
     }
     // the internal copy adds an extra reference we already had with va_pool_Get()
     va_surface_Release(va_surface);
-    *data = (uint8_t*)DXVA2_PICCONTEXT_FROM_PICCTX(pic_ctx)->ctx.picsys.surface;
+    *data = (uint8_t*)DXVA2_PICCONTEXT_FROM_PICCTX(pic->context)->ctx.picsys.surface;
     return VLC_SUCCESS;
 }
 



More information about the vlc-commits mailing list