mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-25 18:02:10 +08:00
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.
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user