aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-08-10 01:07:20 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-08-10 01:08:45 +0200
commitce1bb4b75d52ae98d9a52ed0bb7d18d6da3e35b0 (patch)
treeff7a12c274329d37eac4300625b29935ac451bc2
parentced765ceb32361af413f1510c074722fb6c9242d (diff)
downloadffmpeg-ce1bb4b75d52ae98d9a52ed0bb7d18d6da3e35b0.tar.gz
avfilter/af_pan: Do not use SWR_CH_MAX
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavfilter/af_pan.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavfilter/af_pan.c b/libavfilter/af_pan.c
index 36395e995c..4ba77a7366 100644
--- a/libavfilter/af_pan.c
+++ b/libavfilter/af_pan.c
@@ -50,7 +50,7 @@ typedef struct PanContext {
int pure_gains;
/* channel mapping specific */
- int channel_map[SWR_CH_MAX];
+ int channel_map[MAX_CHANNELS];
struct SwrContext *swr;
} PanContext;
@@ -271,11 +271,11 @@ static int config_props(AVFilterLink *link)
// sanity check; can't be done in query_formats since the inlink
// channel layout is unknown at that time
- if (link->channels > SWR_CH_MAX ||
- pan->nb_output_channels > SWR_CH_MAX) {
+ if (link->channels > MAX_CHANNELS ||
+ pan->nb_output_channels > MAX_CHANNELS) {
av_log(ctx, AV_LOG_ERROR,
- "libswresample support a maximum of %d channels. "
- "Feel free to ask for a higher limit.\n", SWR_CH_MAX);
+ "af_pan support a maximum of %d channels. "
+ "Feel free to ask for a higher limit.\n", MAX_CHANNELS);
return AVERROR_PATCHWELCOME;
}