vlc | branch: master | Steve Lhomme <[email protected]> | 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;
 }
 

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to