History

lavfi/dnn: used the format name in debug message

Used the format name in debug message.

Jun Zhao committed 5 years ago

Commit ae207521 parent 001bc591 file · +4 −2Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/dnn/dnn_io_proc.c+4−2
@@ -70,7 +70,8 @@ DNNReturnType proc_from_dnn_to_frame(AVFrame *frame, DNNData *output, void *log_ · 69 unmodified lines
7070 sws_freeContext(sws_ctx);
7171 return DNN_SUCCESS;
7272 default:
73− av_log(log_ctx, AV_LOG_ERROR, "do not support frame format %d\n", frame->format);
73+ av_log(log_ctx, AV_LOG_ERROR, "do not support frame format %s\n",
74+ av_get_pix_fmt_name(frame->format));
7475 return DNN_ERROR;
7576 }
7677
@@ -127,7 +128,8 @@ DNNReturnType proc_from_frame_to_dnn(AVFrame *frame, DNNData *input, void *log_c · 50 unmodified lines
127128 sws_freeContext(sws_ctx);
128129 break;
129130 default:
130− av_log(log_ctx, AV_LOG_ERROR, "do not support frame format %d\n", frame->format);
131+ av_log(log_ctx, AV_LOG_ERROR, "do not support frame format %s\n",
132+ av_get_pix_fmt_name(frame->format));
131133 return DNN_ERROR;
132134 }
133135

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t