Commit 8f25d680 authored by Erik de Castro Lopo's avatar Erik de Castro Lopo
Browse files

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
parent 58a81cf6
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment