fftools/ffmpeg_filter: switch to avcodec_get_supported_config()

Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
Niklas Haas
2024-04-05 20:47:48 +02:00
parent f3e265c690
commit 33d5a4ec4e
3 changed files with 49 additions and 18 deletions

View File

@ -283,8 +283,6 @@ typedef struct OutputFilterOptions {
// Codec used for encoding, may be NULL
const AVCodec *enc;
// Overrides encoder pixel formats when set.
const enum AVPixelFormat *pix_fmts;
int64_t trim_start_us;
int64_t trim_duration_us;
@ -311,6 +309,11 @@ typedef struct OutputFilterOptions {
int sample_rate;
AVChannelLayout ch_layout;
const int *formats;
const int *sample_rates;
const AVChannelLayout *ch_layouts;
const AVRational *frame_rates;
} OutputFilterOptions;
typedef struct InputFilter {