]> git.sesse.net Git - ffmpeg/commitdiff
lavfi/dnn: used the format name in debug message
authorJun Zhao <barryjzhao@tencent.com>
Wed, 9 Dec 2020 09:53:09 +0000 (17:53 +0800)
committerGuo, Yejun <yejun.guo@intel.com>
Sat, 12 Dec 2020 05:34:24 +0000 (13:34 +0800)
Used the format name in debug message.

Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
libavfilter/dnn/dnn_io_proc.c

index 8ce1959b42e42b835848cdf0053137fef83d6e74..db13d7f5ce617b764f4f0b82e452904b9e7479d7 100644 (file)
@@ -70,7 +70,8 @@ DNNReturnType proc_from_dnn_to_frame(AVFrame *frame, DNNData *output, void *log_
         sws_freeContext(sws_ctx);
         return DNN_SUCCESS;
     default:
-        av_log(log_ctx, AV_LOG_ERROR, "do not support frame format %d\n", frame->format);
+        av_log(log_ctx, AV_LOG_ERROR, "do not support frame format %s\n",
+               av_get_pix_fmt_name(frame->format));
         return DNN_ERROR;
     }
 
@@ -127,7 +128,8 @@ DNNReturnType proc_from_frame_to_dnn(AVFrame *frame, DNNData *input, void *log_c
         sws_freeContext(sws_ctx);
         break;
     default:
-        av_log(log_ctx, AV_LOG_ERROR, "do not support frame format %d\n", frame->format);
+        av_log(log_ctx, AV_LOG_ERROR, "do not support frame format %s\n",
+               av_get_pix_fmt_name(frame->format));
         return DNN_ERROR;
     }