Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: Lynne <dev@lynne.ee>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH 4/4] avcodec/vulkan_decode: Remove always-false check
Date: Thu, 7 Mar 2024 05:03:56 +0100 (CET)
Message-ID: <NsM4Ez9--3-9@lynne.ee> (raw)
In-Reply-To: <GV1SPRMB00526EA8FB8A56FE48AB7C688F202@GV1SPRMB0052.EURP250.PROD.OUTLOOK.COM>

Mar 7, 2024, 01:33 by andreas.rheinhardt@outlook.com:

> These fields are set for all Vulkan decoding hwaccels;
> they would be useless if it were different.
>
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> ---
>  libavcodec/vulkan_decode.c | 6 +-----
>  1 file changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/libavcodec/vulkan_decode.c b/libavcodec/vulkan_decode.c
> index 233b5792d8..91929d165f 100644
> --- a/libavcodec/vulkan_decode.c
> +++ b/libavcodec/vulkan_decode.c
> @@ -780,11 +780,7 @@ static int vulkan_decode_get_profile(AVCodecContext *avctx, AVBufferRef *frames_
>  VkVideoFormatPropertiesKHR *ret_info;
>  uint32_t nb_out_fmts = 0;
>  
> -    if (!vk_desc->decode_op || !vk_desc->decode_extension) {
> -        av_log(avctx, AV_LOG_ERROR, "Unsupported codec for Vulkan decoding: %s!\n",
> -               avcodec_get_name(avctx->codec_id));
> -        return AVERROR(ENOSYS);
> -    } else if (!(vk_desc->decode_extension & ctx->s.extensions)) {
> +    if (!(vk_desc->decode_extension & ctx->s.extensions)) {
>  av_log(avctx, AV_LOG_ERROR, "Device does not support decoding %s!\n",
>  avcodec_get_name(avctx->codec_id));
>  return AVERROR(ENOSYS);
>

Patchset LGTM
Thanks for the cleanups
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

      reply	other threads:[~2024-03-07  4:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-06 23:35 [FFmpeg-devel] [PATCH] avcodec/vulkan_video: Remove unused array Andreas Rheinhardt
2024-03-07  0:32 ` [FFmpeg-devel] [PATCH 2/4] avcodec/vulkan_video: Merge dec part of FFVkCodecMap and extension props Andreas Rheinhardt
2024-03-07  0:32 ` [FFmpeg-devel] [PATCH 3/4] avcodec/vulkan_decode: Un-sparse extensions table Andreas Rheinhardt
2024-03-07  0:32 ` [FFmpeg-devel] [PATCH 4/4] avcodec/vulkan_decode: Remove always-false check Andreas Rheinhardt
2024-03-07  4:03   ` Lynne [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=NsM4Ez9--3-9@lynne.ee \
    --to=dev@lynne.ee \
    --cc=ffmpeg-devel@ffmpeg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git