[FFmpeg-devel] [PATCH V2 1/2] lavfi/dnn: Modify error message for incorrect backend_type

Guo, Yejun yejun.guo at intel.com
Thu Jan 5 03:07:09 EET 2023



> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of
> Ting Fu
> Sent: Monday, January 2, 2023 11:50 PM
> To: ffmpeg-devel at ffmpeg.org
> Subject: [FFmpeg-devel] [PATCH V2 1/2] lavfi/dnn: Modify error message for
> incorrect backend_type
> 
> Signed-off-by: Ting Fu <ting.fu at intel.com>
> ---
>  libavfilter/dnn/dnn_interface.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavfilter/dnn/dnn_interface.c b/libavfilter/dnn/dnn_interface.c
> index 554a36b0dc..fa484c0905 100644
> --- a/libavfilter/dnn/dnn_interface.c
> +++ b/libavfilter/dnn/dnn_interface.c
> @@ -71,7 +71,7 @@ DNNModule *ff_get_dnn_module(DNNBackendType
> backend_type)
>      #endif
>          break;
>      default:
> -        av_log(NULL, AV_LOG_ERROR, "Module backend_type is not native or
> tensorflow\n");
> +        av_log(NULL, AV_LOG_ERROR, "Module backend_type is not
> + supported or enabled.\n");

We need to remove "case DNN_NATIVE:" in this patch, and so native backend will go here 'default:'.

>          av_freep(&dnn_module);
>          return NULL;
>      }

Please also update doc/filters.texi in this commit, thanks.


More information about the ffmpeg-devel mailing list