aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/ffmpeg_mux.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-01-28 10:06:20 +0100
committerAnton Khirnov <anton@khirnov.net>2023-01-29 09:10:57 +0100
commitd2c983c213b824fe70a13db1b16c3ced4296ae6f (patch)
treef7a497d776220e6b3407594dc3a8dc086979be5d /fftools/ffmpeg_mux.h
parent425b2c4a562878fb58d983f3e5c8b4efba77e40e (diff)
downloadffmpeg-d2c983c213b824fe70a13db1b16c3ced4296ae6f.tar.gz
fftools/ffmpeg: add an AVClass to Muxer/OutputFile
Use it for logging. This makes log messages related to this output file more consistent.
Diffstat (limited to 'fftools/ffmpeg_mux.h')
-rw-r--r--fftools/ffmpeg_mux.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fftools/ffmpeg_mux.h b/fftools/ffmpeg_mux.h
index 6a72b9dc91..8a90cc56c6 100644
--- a/fftools/ffmpeg_mux.h
+++ b/fftools/ffmpeg_mux.h
@@ -63,6 +63,9 @@ typedef struct MuxStream {
typedef struct Muxer {
OutputFile of;
+ // name used for logging
+ char log_name[32];
+
AVFormatContext *fc;
pthread_t thread;