summaryrefslogtreecommitdiffstats
path: root/demux/codec_tags.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-10 13:44:08 +0200
committerwm4 <wm4@nowhere>2014-10-10 13:44:08 +0200
commit26bc6b48313dd0470a3998dace217148fc314271 (patch)
tree29073579b973380a248c89f4d4a8b2a97aa7e671 /demux/codec_tags.c
parent7e4491a7a7e9ab41b38fd2ecb58f7b11731c9e05 (diff)
downloadmpv-26bc6b48313dd0470a3998dace217148fc314271.tar.bz2
mpv-26bc6b48313dd0470a3998dace217148fc314271.tar.xz
Add some missing "const"s
The one in msg.c was mistakenly removed with commit e99a37f6. I didn't actually test the change in ao_sndio.c (but obviously "ap" shouldn't be static).
Diffstat (limited to 'demux/codec_tags.c')
-rw-r--r--demux/codec_tags.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/demux/codec_tags.c b/demux/codec_tags.c
index 451d9539df..9af4035ed1 100644
--- a/demux/codec_tags.c
+++ b/demux/codec_tags.c
@@ -352,8 +352,8 @@ static const char *lookup_tag(const struct mp_codec_tag *mp_table,
return id == AV_CODEC_ID_NONE ? NULL : mp_codec_from_av_codec_id(id);
}
-static const char *pcm_le[] = {"pcm_u8", "pcm_s16le", "pcm_s24le", "pcm_s32le"};
-static const char *pcm_be[] = {"pcm_s8", "pcm_s16be", "pcm_s24be", "pcm_s32be"};
+static const char *const pcm_le[] = {"pcm_u8", "pcm_s16le", "pcm_s24le", "pcm_s32le"};
+static const char *const pcm_be[] = {"pcm_s8", "pcm_s16be", "pcm_s24be", "pcm_s32be"};
static const char *map_audio_pcm_tag(uint32_t tag, int bits)
{