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

Steve Lhomme robux4 at ycbcr.xyz
Thu Jul 2 06:57:24 CEST 2020


LGTM

> On 1 Jul 2020, at 16:52, Alexandre Janniaux <ajanni at videolabs.io> wrote:
> 
> 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
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel



More information about the vlc-devel mailing list