From 26bc6b48313dd0470a3998dace217148fc314271 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 10 Oct 2014 13:44:08 +0200 Subject: 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). --- demux/codec_tags.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'demux') 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) { -- cgit v1.2.3