aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/ffmpeg.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-11-16 15:36:24 +0100
committerAnton Khirnov <anton@khirnov.net>2022-11-23 10:36:23 +0100
commit4c405816141129b682e26511dce4fea3f31a621f (patch)
tree0bd0de7a05fecd3fd2485a9679d4d9978044ea2a /fftools/ffmpeg.h
parentbda06c60fed8e45481ca2dad040ed9d2f521ca15 (diff)
downloadffmpeg-4c405816141129b682e26511dce4fea3f31a621f.tar.gz
fftools/ffmpeg: replace OutputStream.source_index with a pointer to InputStream
This is simpler. The indirection via an index exists for historical reasons that longer apply.
Diffstat (limited to 'fftools/ffmpeg.h')
-rw-r--r--fftools/ffmpeg.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h
index a96ff0d723..b1e466406d 100644
--- a/fftools/ffmpeg.h
+++ b/fftools/ffmpeg.h
@@ -486,7 +486,12 @@ typedef enum {
typedef struct OutputStream {
int file_index; /* file index */
int index; /* stream index in the output file */
- int source_index; /* InputStream index */
+
+ /* input stream that is the source for this output stream;
+ * may be NULL for streams with no well-defined source, e.g.
+ * attachments or outputs from complex filtergraphs */
+ InputStream *ist;
+
AVStream *st; /* stream in the output file */
/* number of frames emitted by the video-encoding sync code */
int64_t vsync_frame_number;