]> git.sesse.net Git - ffmpeg/commitdiff
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 a423c455cc4e05b68a3096cca355014a48e6d6d9..3adf6c899c8c1eb781e71b697919edffd0afe5f1 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;