summaryrefslogtreecommitdiff
path: root/fftools/ffmpeg.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-12-11 13:22:36 +0100
committerAnton Khirnov <anton@khirnov.net>2022-04-13 12:07:54 +0200
commitb1a984cb4956e73e6b2bcc6463f4f1d9ba8b5a29 (patch)
tree356a40c07b6c9ef2884417b6bdaa7fe9dc7f2b3d /fftools/ffmpeg.h
parent16aea9a38bbe1113b12f814def1d13251e76ecac (diff)
fftools/ffmpeg: store the output file index in OutputFile
Use it to simplify check_init_output_file(). Will allow further simplifications in the following commits.
Diffstat (limited to 'fftools/ffmpeg.h')
-rw-r--r--fftools/ffmpeg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h
index 04369df139..0eee6f4da8 100644
--- a/fftools/ffmpeg.h
+++ b/fftools/ffmpeg.h
@@ -577,6 +577,8 @@ typedef struct OutputStream {
} OutputStream;
typedef struct OutputFile {
+ int index;
+
AVFormatContext *ctx;
AVDictionary *opts;
int ost_index; /* index of the first stream in output_streams */