Mercurial > libavcodec.hg
comparison libtheoraenc.c @ 9952:4b3abcad0628 libavcodec
Fix "warning: assignment discards qualifiers from pointer target type"
author | conrad |
---|---|
date | Mon, 13 Jul 2009 01:59:48 +0000 |
parents | 702e111de423 |
children | dfb91c11fe9c |
comparison
equal
deleted
inserted
replaced
9951:702e111de423 | 9952:4b3abcad0628 |
---|---|
45 /*! | 45 /*! |
46 Concatenates an ogg_packet into the extradata. | 46 Concatenates an ogg_packet into the extradata. |
47 */ | 47 */ |
48 static int concatenate_packet(unsigned int* offset, AVCodecContext* avc_context, const ogg_packet* packet) | 48 static int concatenate_packet(unsigned int* offset, AVCodecContext* avc_context, const ogg_packet* packet) |
49 { | 49 { |
50 char* message = NULL; | 50 const char* message = NULL; |
51 uint8_t* newdata = NULL; | 51 uint8_t* newdata = NULL; |
52 int newsize = avc_context->extradata_size + 2 + packet->bytes; | 52 int newsize = avc_context->extradata_size + 2 + packet->bytes; |
53 | 53 |
54 if (packet->bytes < 0) { | 54 if (packet->bytes < 0) { |
55 message = "ogg_packet has negative size"; | 55 message = "ogg_packet has negative size"; |