From c88a956c6424cd58ab5f8f51c83bdbd246c492d0 Mon Sep 17 00:00:00 2001 From: Tristan Matthews Date: Wed, 24 May 2017 20:35:04 -0400 Subject: [PATCH] flac: use library defined constant --- modules/codec/flac.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/codec/flac.c b/modules/codec/flac.c index 65a78ea772..b53dc8406f 100644 --- a/modules/codec/flac.c +++ b/modules/codec/flac.c @@ -75,9 +75,7 @@ struct decoder_sys_t bool b_stream_info; }; -#define FLAC_MAX_CHANNELS 8 - -static const int pi_channels_maps[FLAC_MAX_CHANNELS + 1] = +static const int pi_channels_maps[FLAC__MAX_CHANNELS + 1] = { 0, AOUT_CHAN_CENTER, @@ -98,7 +96,7 @@ static const int pi_channels_maps[FLAC_MAX_CHANNELS + 1] = }; /* XXX it supposes our internal format is WG4 */ -static const uint8_t ppi_reorder[1+FLAC_MAX_CHANNELS][FLAC_MAX_CHANNELS] = +static const uint8_t ppi_reorder[1+FLAC__MAX_CHANNELS][FLAC__MAX_CHANNELS] = { { }, { 0, }, -- 2.11.4.GIT