[FFmpeg-cvslog] fftools/ffmpeg_demux: log when the demuxer thread terminates
Anton Khirnov
git at videolan.org
Tue Oct 25 12:16:19 EEST 2022
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Mon Oct 17 13:25:29 2022 +0200| [21ef1f2cecd12895f8cad0aa584ad0faa8c0364c] | committer: Anton Khirnov
fftools/ffmpeg_demux: log when the demuxer thread terminates
Similar to what is done for muxing, may be useful for debugging.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=21ef1f2cecd12895f8cad0aa584ad0faa8c0364c
---
fftools/ffmpeg_demux.c | 8 ++++++++
1 file changed, 8 insertions(+)
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;
}
More information about the ffmpeg-cvslog
mailing list