From 7bc2ef9e6cbc00ddbf9791ae8517b1e5c2c8ea31 Mon Sep 17 00:00:00 2001 From: simon987 Date: Wed, 3 Apr 2024 14:26:33 -0400 Subject: [PATCH] Add debug print statement.. --- third-party/libscan/libscan/media/media.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/third-party/libscan/libscan/media/media.c b/third-party/libscan/libscan/media/media.c index b5974d6..a0324cb 100644 --- a/third-party/libscan/libscan/media/media.c +++ b/third-party/libscan/libscan/media/media.c @@ -569,6 +569,9 @@ void parse_media_format_ctx(scan_media_ctx_t *ctx, AVFormatContext *pFormatCtx, AVStream *stream = pFormatCtx->streams[video_stream]; if (stream->codecpar->width <= MIN_SIZE || stream->codecpar->height <= MIN_SIZE) { + CTX_LOG_DEBUGF(doc->filepath, + "Will not generate thumbnail because image is too small: %dx%d", + stream->codecpar->width, stream->codecpar->width); avformat_close_input(&pFormatCtx); avformat_free_context(pFormatCtx); return;