diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-01-21 23:48:50 +0100 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-01-22 14:41:15 +0100 |
commit | 0a403588d200845094e41c9de83750bc1439cee0 (patch) | |
tree | b87acfe62a0fa09b8f41ea8182e15bf8e00b87fa /libavcodec | |
parent | daa47fdd2c46abdeab1991d4fb6a648651df0a22 (diff) | |
download | ffmpeg-0a403588d200845094e41c9de83750bc1439cee0.tar.gz |
Make variable that always has the same value const.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/fraps.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c index c5ddd5418a..f1f5b30831 100644 --- a/libavcodec/fraps.c +++ b/libavcodec/fraps.c @@ -138,7 +138,8 @@ static int decode_frame(AVCodecContext *avctx, const uint32_t *buf32; uint32_t *luma1,*luma2,*cb,*cr; uint32_t offs[4]; - int i, j, is_chroma, planes; + int i, j, is_chroma; + const int planes = 3; header = AV_RL32(buf); @@ -246,7 +247,6 @@ static int decode_frame(AVCodecContext *avctx, * Fraps v4 is virtually the same */ avctx->pix_fmt = PIX_FMT_YUVJ420P; - planes = 3; f->reference = 3; f->buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | @@ -291,7 +291,6 @@ static int decode_frame(AVCodecContext *avctx, case 5: /* Virtually the same as version 4, but is for RGB24 */ avctx->pix_fmt = PIX_FMT_BGR24; - planes = 3; f->reference = 3; f->buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | |