OSDN Git Service

Fix "warning: assignment discards qualifiers from pointer target type"
authorDavid Conrad <lessen42@gmail.com>
Mon, 13 Jul 2009 01:59:48 +0000 (01:59 +0000)
committerDavid Conrad <lessen42@gmail.com>
Mon, 13 Jul 2009 01:59:48 +0000 (01:59 +0000)
Originally committed as revision 19424 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/libtheoraenc.c

index 04b8812..9da0d19 100644 (file)
@@ -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;