Used the format name in debug message.
Unified · Split
| @@ -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 | ||