[vlc-devel] [PATCH] d3d11va: return ENOMEM for malloc error

Steve Lhomme robux4 at ycbcr.xyz
Fri Feb 12 15:20:03 UTC 2021


OK, you can do the same for dxva2.c

On 2021-02-12 15:34, Alexandre Janniaux wrote:
> ---
>   modules/codec/avcodec/d3d11va.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/modules/codec/avcodec/d3d11va.c b/modules/codec/avcodec/d3d11va.c
> index 61b5aed54b..74db5cfa43 100644
> --- a/modules/codec/avcodec/d3d11va.c
> +++ b/modules/codec/avcodec/d3d11va.c
> @@ -205,7 +205,7 @@ static int Get(vlc_va_t *va, picture_t *pic, uint8_t **data)
>       if (unlikely(pic->context == NULL))
>       {
>           va_surface_Release(va_surface);
> -        return VLC_ENOITEM;
> +        return VLC_ENOMEM;
>       }
>       data[3] = (uint8_t*)sys->hw_surface[va_surface_GetIndex(va_surface)];
>       return VLC_SUCCESS;
> -- 
> 2.30.1
> 
> _______________________________________________
> 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