From 2e52cd452870eecbe1acf5416f595ddcc4077165 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Wed, 14 Jun 2023 13:32:26 +0200 Subject: [PATCH] vidcap file: print video frame type used in GH-322 comment --- src/video_capture/file.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/video_capture/file.c b/src/video_capture/file.c index 87e787228..d3e60ff88 100644 --- a/src/video_capture/file.c +++ b/src/video_capture/file.c @@ -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); }