aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/bmp.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-02-01 15:01:05 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-02-01 15:01:05 +0000
commit4bae195ff530b2af61179a34b004c1ac4119cff1 (patch)
tree788db3498e40960300aa5db0c57caa5f96bba044 /libavcodec/bmp.c
parent2b12d6fc79817d14b555b13847e6b328fbc3d2bd (diff)
downloadffmpeg-4bae195ff530b2af61179a34b004c1ac4119cff1.tar.gz
const
Originally committed as revision 11757 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/bmp.c')
-rw-r--r--libavcodec/bmp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/bmp.c b/libavcodec/bmp.c
index 8ff2fc658a..35d20e6cc7 100644
--- a/libavcodec/bmp.c
+++ b/libavcodec/bmp.c
@@ -34,7 +34,7 @@ static int bmp_decode_init(AVCodecContext *avctx){
static int bmp_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
- uint8_t *buf, int buf_size)
+ const uint8_t *buf, int buf_size)
{
BMPContext *s = avctx->priv_data;
AVFrame *picture = data;
@@ -48,7 +48,7 @@ static int bmp_decode_frame(AVCodecContext *avctx,
uint32_t rgb[3];
uint8_t *ptr;
int dsize;
- uint8_t *buf0 = buf;
+ const uint8_t *buf0 = buf;
if(buf_size < 14){
av_log(avctx, AV_LOG_ERROR, "buf size too small (%d)\n", buf_size);
@@ -193,7 +193,7 @@ static int bmp_decode_frame(AVCodecContext *avctx,
break;
case 16:
for(i = 0; i < avctx->height; i++){
- uint16_t *src = (uint16_t *) buf;
+ const uint16_t *src = (const uint16_t *) buf;
uint16_t *dst = (uint16_t *) ptr;
for(j = 0; j < avctx->width; j++)
@@ -205,7 +205,7 @@ static int bmp_decode_frame(AVCodecContext *avctx,
break;
case 32:
for(i = 0; i < avctx->height; i++){
- uint8_t *src = buf;
+ const uint8_t *src = buf;
uint8_t *dst = ptr;
for(j = 0; j < avctx->width; j++){