[FFmpeg-devel] [PATCH 1/2] avcodec/d3d12va_decode: fix different 'const' qualifiers warning

Xiang, Haihao haihao.xiang at intel.com
Mon Feb 5 04:20:56 EET 2024


On Wo, 2024-01-31 at 19:56 +0800, tong1.wu-at-intel.com at ffmpeg.org wrote:
> From: Tong Wu <tong1.wu at intel.com>
> 
> Signed-off-by: Tong Wu <tong1.wu at intel.com>
> ---
>  libavcodec/d3d12va_decode.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavcodec/d3d12va_decode.c b/libavcodec/d3d12va_decode.c
> index f678b6f483..a615a3898b 100644
> --- a/libavcodec/d3d12va_decode.c
> +++ b/libavcodec/d3d12va_decode.c
> @@ -79,7 +79,7 @@ unsigned ff_d3d12va_get_surface_index(const AVCodecContext
> *avctx,
>      }
>  
>  fail:
> -    av_log(avctx, AV_LOG_WARNING, "Could not get surface index. Using 0
> instead.\n");
> +    av_log((AVCodecContext *)avctx, AV_LOG_WARNING, "Could not get surface
> index. Using 0 instead.\n");
>      return 0;
>  }
>  

Patchset LGTM, will apply.

- Haihao




More information about the ffmpeg-devel mailing list