[vlc-devel] [PATCH] vdpau: avcodec: use data[3] instead of *data

Alexandre Janniaux ajanni at videolabs.io
Wed Jul 1 16:52:07 CEST 2020


Same refactor as 3804ff2dffc2a46ead5598881d0a08db977000d3, but was
forgotten from the set.

Regression from 3804ff2dffc2a46ead5598881d0a08db977000d3
---
 modules/hw/vdpau/avcodec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/hw/vdpau/avcodec.c b/modules/hw/vdpau/avcodec.c
index 49ff13d589e..f83100bd851 100644
--- a/modules/hw/vdpau/avcodec.c
+++ b/modules/hw/vdpau/avcodec.c
@@ -123,7 +123,7 @@ static int Lock(vlc_va_t *va, picture_t *pic, uint8_t **data)
     field->context.vctx = vlc_video_context_Hold(sys->vctx);
 
     pic->context = &field->context;
-    *data = (void *)(uintptr_t)field->frame->surface;
+    data[3] = (void *)(uintptr_t)field->frame->surface;
     return VLC_SUCCESS;
 }
 
-- 
2.27.0



More information about the vlc-devel mailing list