diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-01-28 10:06:20 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-01-29 09:12:22 +0100 |
commit | 9b5036fabd41c93cbd623a12893511761827ae98 (patch) | |
tree | 0148e3ef19d6b44d714dfc2a1996383b07a684cf /fftools/ffmpeg.h | |
parent | d2c983c213b824fe70a13db1b16c3ced4296ae6f (diff) | |
download | ffmpeg-9b5036fabd41c93cbd623a12893511761827ae98.tar.gz |
fftools/ffmpeg: add an AVClass to MuxStream/OutputStream
Use it for logging. This makes log messages related to this output
stream more consistent.
Diffstat (limited to 'fftools/ffmpeg.h')
-rw-r--r-- | fftools/ffmpeg.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index 1a235f205f..dddab456f7 100644 --- a/fftools/ffmpeg.h +++ b/fftools/ffmpeg.h @@ -548,6 +548,8 @@ typedef struct KeyframeForceCtx { } KeyframeForceCtx; typedef struct OutputStream { + const AVClass *class; + int file_index; /* file index */ int index; /* stream index in the output file */ @@ -757,7 +759,8 @@ void assert_avoptions(AVDictionary *m); void assert_file_overwrite(const char *filename); char *file_read(const char *filename); AVDictionary *strip_specifiers(const AVDictionary *dict); -const AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder); +const AVCodec *find_codec_or_die(void *logctx, const char *name, + enum AVMediaType type, int encoder); int parse_and_set_vsync(const char *arg, int *vsync_var, int file_idx, int st_idx, int is_global); int configure_filtergraph(FilterGraph *fg); |