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
70 sws_freeContext(sws_ctx);70 sws_freeContext(sws_ctx);
71 return DNN_SUCCESS;71 return DNN_SUCCESS;
72 default:72 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));
74 return DNN_ERROR;75 return DNN_ERROR;
75 }76 }
76 77
@@ -127,7 +128,8 @@ DNNReturnType proc_from_frame_to_dnn(AVFrame *frame, DNNData *input, void *log_c · 50 unmodified lines
127 sws_freeContext(sws_ctx);128 sws_freeContext(sws_ctx);
128 break;129 break;
129 default:130 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));
131 return DNN_ERROR;133 return DNN_ERROR;
132 }134 }
133 135

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