vidcap file: print video frame type

used in GH-322 comment
This commit is contained in:
Martin Pulec
2023-06-14 13:32:26 +02:00
parent c4dcc5051b
commit 2e52cd4528

View File

@@ -352,7 +352,13 @@ static void *vidcap_file_worker(void *state) {
got_frame = 1;
}
}
log_msg(LOG_LEVEL_DEBUG, MOD_NAME "Video decompress duration: %f\n", (get_time_in_ns() - t0) / NS_IN_SEC_DBL);
log_msg(LOG_LEVEL_DEBUG,
MOD_NAME "Video decompressing %c frame "
"duration: %f ns\n",
av_get_picture_type_char(
frame->pict_type),
(get_time_in_ns() - t0) /
NS_IN_SEC_DBL);
if (ret != 0) {
print_decoder_error(MOD_NAME, ret);
}