diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2017-01-06 20:01:18 +1100 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2017-01-06 20:01:22 +1100 |
commit | 8f25d680ac0b4d1e6e9fae41baf5d95154ccf071 (patch) | |
tree | 28a10c5215e43c7cc4618cd64e63120eda8ad3d4 /src | |
parent | 58a81cf678cb578a82bfc11df76397ab1569dcbd (diff) | |
download | flac-8f25d680ac0b4d1e6e9fae41baf5d95154ccf071.tar.gz |
stream_encoder.c: Make compression_levels_ array const
As pointed out by github user @randomascii, the `compression_levels_`
struct could and should be const.
Closes: https://github.com/xiph/flac/issues/26
Diffstat (limited to 'src')
-rw-r--r-- | src/libFLAC/stream_encoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libFLAC/stream_encoder.c b/src/libFLAC/stream_encoder.c index 037b8cb5..e1cba75e 100644 --- a/src/libFLAC/stream_encoder.c +++ b/src/libFLAC/stream_encoder.c @@ -99,7 +99,7 @@ typedef enum { ENCODER_IN_AUDIO = 2 } EncoderStateHint; -static struct CompressionLevels { +static const struct CompressionLevels { FLAC__bool do_mid_side_stereo; FLAC__bool loose_mid_side_stereo; unsigned max_lpc_order; |