Browse code

Make variable that always has the same value const.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>

Reimar Döffinger authored on 2012/01/22 07:48:50
Showing 1 changed files
... ...
@@ -138,7 +138,8 @@ static int decode_frame(AVCodecContext *avctx,
138 138
     const uint32_t *buf32;
139 139
     uint32_t *luma1,*luma2,*cb,*cr;
140 140
     uint32_t offs[4];
141
-    int i, j, is_chroma, planes;
141
+    int i, j, is_chroma;
142
+    const int planes = 3;
142 143
 
143 144
 
144 145
     header = AV_RL32(buf);
... ...
@@ -246,7 +247,6 @@ static int decode_frame(AVCodecContext *avctx,
246 246
          * Fraps v4 is virtually the same
247 247
          */
248 248
         avctx->pix_fmt = PIX_FMT_YUVJ420P;
249
-        planes = 3;
250 249
         f->reference = 3;
251 250
         f->buffer_hints = FF_BUFFER_HINTS_VALID |
252 251
                           FF_BUFFER_HINTS_PRESERVE |
... ...
@@ -291,7 +291,6 @@ static int decode_frame(AVCodecContext *avctx,
291 291
     case 5:
292 292
         /* Virtually the same as version 4, but is for RGB24 */
293 293
         avctx->pix_fmt = PIX_FMT_BGR24;
294
-        planes = 3;
295 294
         f->reference = 3;
296 295
         f->buffer_hints = FF_BUFFER_HINTS_VALID |
297 296
                           FF_BUFFER_HINTS_PRESERVE |