diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-03-21 17:21:46 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-08-08 16:20:58 +0200 |
commit | cc2b7f4625497cab303a0b5dd9f47d366a619a64 (patch) | |
tree | ee6bbe0a52c7e5cbecf26b535708a35de7ae6db2 /fftools/ffmpeg.h | |
parent | 9139ea4c8d1c1539f96c516b224922097d16a5b4 (diff) | |
download | ffmpeg-cc2b7f4625497cab303a0b5dd9f47d366a619a64.tar.gz |
fftools/ffmpeg: store the input file index in InputFile
Use it to simplify some code and fix two off-by-one errors.
Similar to what was previously done for OutputFile.
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 6b09846825..23b249780b 100644 --- a/fftools/ffmpeg.h +++ b/fftools/ffmpeg.h @@ -408,6 +408,8 @@ typedef struct InputStream { } InputStream; typedef struct InputFile { + int index; + AVFormatContext *ctx; int eof_reached; /* true if eof reached */ int eagain; /* true if last read attempt returned EAGAIN */ |