mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-04-16 20:17:45 +00:00
avfilter/af_pan: Do not use SWR_CH_MAX
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ced765ceb3
commit
ce1bb4b75d
@ -50,7 +50,7 @@ typedef struct PanContext {
|
|||||||
|
|
||||||
int pure_gains;
|
int pure_gains;
|
||||||
/* channel mapping specific */
|
/* channel mapping specific */
|
||||||
int channel_map[SWR_CH_MAX];
|
int channel_map[MAX_CHANNELS];
|
||||||
struct SwrContext *swr;
|
struct SwrContext *swr;
|
||||||
} PanContext;
|
} PanContext;
|
||||||
|
|
||||||
@ -271,11 +271,11 @@ static int config_props(AVFilterLink *link)
|
|||||||
|
|
||||||
// sanity check; can't be done in query_formats since the inlink
|
// sanity check; can't be done in query_formats since the inlink
|
||||||
// channel layout is unknown at that time
|
// channel layout is unknown at that time
|
||||||
if (link->channels > SWR_CH_MAX ||
|
if (link->channels > MAX_CHANNELS ||
|
||||||
pan->nb_output_channels > SWR_CH_MAX) {
|
pan->nb_output_channels > MAX_CHANNELS) {
|
||||||
av_log(ctx, AV_LOG_ERROR,
|
av_log(ctx, AV_LOG_ERROR,
|
||||||
"libswresample support a maximum of %d channels. "
|
"af_pan support a maximum of %d channels. "
|
||||||
"Feel free to ask for a higher limit.\n", SWR_CH_MAX);
|
"Feel free to ask for a higher limit.\n", MAX_CHANNELS);
|
||||||
return AVERROR_PATCHWELCOME;
|
return AVERROR_PATCHWELCOME;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user