diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-04-11 10:15:55 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-04-17 12:01:40 +0200 |
commit | a064aed4c37836468f4156e6b3aaf150a626fa50 (patch) | |
tree | 5833f19dd2ccfb1b6fe6d36be29d2249f1c6b399 /fftools/ffmpeg.h | |
parent | de38e17583bf5b542188810c1079abcf0c9ff8da (diff) | |
download | ffmpeg-a064aed4c37836468f4156e6b3aaf150a626fa50.tar.gz |
fftools/ffmpeg: store stream media type in OutputStream
Reduces access to a deeply nested muxer property
OutputStream.st->codecpar->codec_type for this fundamental and immutable
stream property.
Besides making the code shorter, this will allow making the AVStream
(OutputStream.st) private to the muxer in the future.
Diffstat (limited to 'fftools/ffmpeg.h')
-rw-r--r-- | fftools/ffmpeg.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index 5833c13812..f08f5db49e 100644 --- a/fftools/ffmpeg.h +++ b/fftools/ffmpeg.h @@ -578,6 +578,8 @@ typedef struct Encoder Encoder; typedef struct OutputStream { const AVClass *class; + enum AVMediaType type; + int file_index; /* file index */ int index; /* stream index in the output file */ |