mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-24 16:00:02 +01:00
fftools/ffmpeg_filter: pass sws/swr opts through OutputFilterOptions
Do not read them from OutputStream directly. Will allow decoupling filtering from encoding in future commits.
This commit is contained in:
@@ -265,6 +265,8 @@ typedef struct InputFilterOptions {
|
||||
|
||||
enum OFilterFlags {
|
||||
OFILTER_FLAG_DISABLE_CONVERT = (1 << 0),
|
||||
// produce 24-bit audio
|
||||
OFILTER_FLAG_AUDIO_24BIT = (1 << 1),
|
||||
};
|
||||
|
||||
typedef struct OutputFilterOptions {
|
||||
@@ -283,6 +285,9 @@ typedef struct OutputFilterOptions {
|
||||
*/
|
||||
AVRational output_tb;
|
||||
|
||||
AVDictionary *sws_opts;
|
||||
AVDictionary *swr_opts;
|
||||
|
||||
// A combination of OFilterFlags.
|
||||
unsigned flags;
|
||||
|
||||
@@ -574,8 +579,6 @@ typedef struct OutputStream {
|
||||
OutputFilter *filter;
|
||||
|
||||
AVDictionary *encoder_opts;
|
||||
AVDictionary *sws_dict;
|
||||
AVDictionary *swr_opts;
|
||||
char *apad;
|
||||
|
||||
char *attachment_filename;
|
||||
|
||||
Reference in New Issue
Block a user