summaryrefslogtreecommitdiff
path: root/libavdevice
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-06-11 00:28:00 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-11 00:48:41 +0200
commit8ddc415515eb74c72b774fad48e34df43d5954ad (patch)
tree3d2a41c549056b320f56200d7b8d02433027b0a7 /libavdevice
parent9e40bd50e1dec885f3ec83059dd3bc9ac4966599 (diff)
downloadffmpeg-8ddc415515eb74c72b774fad48e34df43d5954ad.tar.gz
avdevice/openal-dec: Make al_format_info const
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/openal-dec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavdevice/openal-dec.c b/libavdevice/openal-dec.c
index 37d321a35d..b552158f76 100644
--- a/libavdevice/openal-dec.c
+++ b/libavdevice/openal-dec.c
@@ -60,9 +60,9 @@ typedef struct {
* @param al_fmt the AL_FORMAT value to find information about.
* @return A pointer to a structure containing information about the AL_FORMAT value.
*/
-static inline al_format_info* get_al_format_info(ALCenum al_fmt)
+static const inline al_format_info* get_al_format_info(ALCenum al_fmt)
{
- static al_format_info info_table[] = {
+ static const al_format_info info_table[] = {
[AL_FORMAT_MONO8-LOWEST_AL_FORMAT] = {AL_FORMAT_MONO8, AV_CODEC_ID_PCM_U8, 1},
[AL_FORMAT_MONO16-LOWEST_AL_FORMAT] = {AL_FORMAT_MONO16, AV_NE (AV_CODEC_ID_PCM_S16BE, AV_CODEC_ID_PCM_S16LE), 1},
[AL_FORMAT_STEREO8-LOWEST_AL_FORMAT] = {AL_FORMAT_STEREO8, AV_CODEC_ID_PCM_U8, 2},