Unified · Split
| @@ -50,7 +50,7 @@ typedef struct PanContext { · 49 unmodified lines | ||
| 50 | 50 | |
| 51 | 51 | int pure_gains; |
| 52 | 52 | /* channel mapping specific */ |
| 53 | − int channel_map[SWR_CH_MAX]; | |
| 53 | + int channel_map[MAX_CHANNELS]; | |
| 54 | 54 | struct SwrContext *swr; |
| 55 | 55 | } PanContext; |
| 56 | 56 | |
| @@ -271,11 +271,11 @@ static int config_props(AVFilterLink *link) · 214 unmodified lines | ||
| 271 | 271 | |
| 272 | 272 | // sanity check; can't be done in query_formats since the inlink |
| 273 | 273 | // channel layout is unknown at that time |
| 274 | − if (link->channels > SWR_CH_MAX || | |
| 275 | − pan->nb_output_channels > SWR_CH_MAX) { | |
| 274 | + if (link->channels > MAX_CHANNELS || | |
| 275 | + pan->nb_output_channels > MAX_CHANNELS) { | |
| 276 | 276 | av_log(ctx, AV_LOG_ERROR, |
| 277 | − "libswresample support a maximum of %d channels. " | |
| 278 | − "Feel free to ask for a higher limit.\n", SWR_CH_MAX); | |
| 277 | + "af_pan support a maximum of %d channels. " | |
| 278 | + "Feel free to ask for a higher limit.\n", MAX_CHANNELS); | |
| 279 | 279 | return AVERROR_PATCHWELCOME; |
| 280 | 280 | } |
| 281 | 281 | |