diff options
author | Jun Zhao <barryjzhao@tencent.com> | 2020-12-09 17:53:09 +0800 |
---|---|---|
committer | Guo, Yejun <yejun.guo@intel.com> | 2020-12-12 13:34:24 +0800 |
commit | ae2075265b8e779ed0545aa4f9b238013b4e446f (patch) | |
tree | 9e374d4e172a1f098fd7af66fcf42e84289b6390 /libavfilter | |
parent | 001bc594d82f3df67a6e96c6ea022f4e39002385 (diff) | |
download | ffmpeg-ae2075265b8e779ed0545aa4f9b238013b4e446f.tar.gz |
lavfi/dnn: used the format name in debug message
Used the format name in debug message.
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/dnn/dnn_io_proc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavfilter/dnn/dnn_io_proc.c b/libavfilter/dnn/dnn_io_proc.c index 8ce1959b42..db13d7f5ce 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; } |