1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-29 22:00:58 +02:00

lavfi/dnn: used the format name in debug message

Used the format name in debug message.

Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
This commit is contained in:
Jun Zhao 2020-12-09 17:53:09 +08:00 committed by Guo, Yejun
parent 001bc594d8
commit ae2075265b

View 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;
}