From: Jun Zhao <[email protected]>

Used the format name in debug message.

Signed-off-by: Jun Zhao <[email protected]>
---
 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 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;
     }
 
-- 
2.7.4

_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to