fftools/ffmpeg: refactor the code checking for bitexact output

Figure out earlier whether the output stream/file should be bitexact and
store this information in a flag in OutputFile/OutputStream.

Stop accessing the muxer in set_encoder_id(), which will become
forbidden in future commits.
This commit is contained in:
Anton Khirnov
2021-12-11 15:37:41 +01:00
parent cc1cc2c65e
commit 4877842bb5
3 changed files with 29 additions and 21 deletions

View File

@@ -498,6 +498,7 @@ typedef struct OutputStream {
int top_field_first;
int rotate_overridden;
int autoscale;
int bitexact;
int bits_per_raw_sample;
double rotate_override_value;
@@ -598,6 +599,7 @@ typedef struct OutputFile {
int64_t start_time; ///< start time in microseconds == AV_TIME_BASE units
int shortest;
int bitexact;
} OutputFile;
extern InputStream **input_streams;