diff --git a/libavcodec/libtheoraenc.c b/libavcodec/libtheoraenc.c
index 04b88128824fe1ddb9a7ca3da5801eed34acd973..9da0d1994444f704871a5ac46cf1d85853e089ed 100644
--- a/libavcodec/libtheoraenc.c
+++ b/libavcodec/libtheoraenc.c
@@ -47,7 +47,7 @@ typedef struct TheoraContext{
 */
 static int concatenate_packet(unsigned int* offset, AVCodecContext* avc_context, const ogg_packet* packet)
 {
-    char* message = NULL;
+    const char* message = NULL;
     uint8_t* newdata = NULL;
     int newsize = avc_context->extradata_size + 2 + packet->bytes;