ffmpeg | branch: master | Jun Zhao <barryjz...@tencent.com> | Wed Dec 9 17:53:09 2020 +0800| [ae2075265b8e779ed0545aa4f9b238013b4e446f] | committer: Guo, Yejun
lavfi/dnn: used the format name in debug message Used the format name in debug message. Signed-off-by: Jun Zhao <barryjz...@tencent.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ae2075265b8e779ed0545aa4f9b238013b4e446f --- libavfilter/dnn/dnn_io_proc.c | 6 ++++-- 1 file 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; } _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".