avcodec/smc: Mark pixel pointer as const
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 1 May 2016 12:33:20 +0000 (14:33 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 1 May 2016 15:47:55 +0000 (17:47 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/smc.c

index a423c45..3adf6c8 100644 (file)
@@ -92,7 +92,7 @@ static void smc_decode_stream(SmcContext *s)
     unsigned int color_flags_b;
     unsigned int flag_mask;
 
-    unsigned char *pixels = s->frame->data[0];
+    unsigned char * const pixels = s->frame->data[0];
 
     int image_size = height * s->frame->linesize[0];
     int row_ptr = 0;