]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/truespeech.c
avcodec: Constify AVCodecs
[ffmpeg] / libavcodec / truespeech.c
index 3cdae8c556f5eb84962f4f49908563a9dd80230a..5eac34fefcd104d8cdac98ed0664daee518430e8 100644 (file)
@@ -21,6 +21,8 @@
 
 #include "libavutil/channel_layout.h"
 #include "libavutil/intreadwrite.h"
+#include "libavutil/mem_internal.h"
+
 #include "avcodec.h"
 #include "bswapdsp.h"
 #include "get_bits.h"
@@ -353,7 +355,7 @@ static int truespeech_decode_frame(AVCodecContext *avctx, void *data,
     return buf_size;
 }
 
-AVCodec ff_truespeech_decoder = {
+const AVCodec ff_truespeech_decoder = {
     .name           = "truespeech",
     .long_name      = NULL_IF_CONFIG_SMALL("DSP Group TrueSpeech"),
     .type           = AVMEDIA_TYPE_AUDIO,