mirror of
https://github.com/simon987/sist2.git
synced 2025-04-10 14:06:45 +00:00
Add debug print statement..
This commit is contained in:
parent
f65cca5a02
commit
7bc2ef9e6c
3
third-party/libscan/libscan/media/media.c
vendored
3
third-party/libscan/libscan/media/media.c
vendored
@ -569,6 +569,9 @@ void parse_media_format_ctx(scan_media_ctx_t *ctx, AVFormatContext *pFormatCtx,
|
|||||||
AVStream *stream = pFormatCtx->streams[video_stream];
|
AVStream *stream = pFormatCtx->streams[video_stream];
|
||||||
|
|
||||||
if (stream->codecpar->width <= MIN_SIZE || stream->codecpar->height <= MIN_SIZE) {
|
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_close_input(&pFormatCtx);
|
||||||
avformat_free_context(pFormatCtx);
|
avformat_free_context(pFormatCtx);
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user