diff mbox series

[FFmpeg-devel,2/3] lavfi/dnn: used the format name in debug message

Message ID 1607507590-19938-2-git-send-email-mypopydev@gmail.com
State Accepted
Commit ae2075265b8e779ed0545aa4f9b238013b4e446f
Headers show
Series [FFmpeg-devel,1/3] tests/audiomatch: add free to make static analysis tools happy | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate warning Make fate failed

Commit Message

Jun Zhao Dec. 9, 2020, 9:53 a.m. UTC
From: Jun Zhao <barryjzhao@tencent.com>

Used the format name in debug message.

Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
---
 libavfilter/dnn/dnn_io_proc.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libavfilter/dnn/dnn_io_proc.c b/libavfilter/dnn/dnn_io_proc.c
index 8ce1959..db13d7f 100644
--- a/libavfilter/dnn/dnn_io_proc.c
+++ b/libavfilter/dnn/dnn_io_proc.c
@@ -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;
     }