Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-10-17 14:25:29 +0300
committerAnton Khirnov <anton@khirnov.net>2022-10-25 12:04:42 +0300
commit21ef1f2cecd12895f8cad0aa584ad0faa8c0364c (patch)
tree25d176a1c526cb237c62a10f2d225161c2b85212 /fftools
parent5c1a096d02a4fce0799472425f60c8d1644fcdbd (diff)
fftools/ffmpeg_demux: log when the demuxer thread terminates
Similar to what is done for muxing, may be useful for debugging.
Diffstat (limited to 'fftools')
-rw-r--r--fftools/ffmpeg_demux.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/fftools/ffmpeg_demux.c b/fftools/ffmpeg_demux.c
index 0e50812e59..51ce7d3ad2 100644
--- a/fftools/ffmpeg_demux.c
+++ b/fftools/ffmpeg_demux.c
@@ -272,6 +272,12 @@ static void *input_thread(void *arg)
/* fallthrough to the error path */
}
+ if (ret == AVERROR_EOF)
+ av_log(NULL, AV_LOG_VERBOSE, "EOF in input file %d\n", f->index);
+ else
+ av_log(NULL, AV_LOG_ERROR, "Error demuxing input file %d: %s\n",
+ f->index, av_err2str(ret));
+
break;
}
@@ -333,6 +339,8 @@ finish:
av_packet_free(&pkt);
+ av_log(NULL, AV_LOG_VERBOSE, "Terminating demuxer thread %d\n", f->index);
+
return NULL;
}