Mercurial > libavcodec.hg
changeset 9459:84932ac233a5 libavcodec
Remove unused variables from ff_mjpeg_decode_sos() found by CSA.
author | michael |
---|---|
date | Fri, 17 Apr 2009 13:03:56 +0000 |
parents | a15a08c1ce8b |
children | 12c8d0e11f39 |
files | mjpegdec.c |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mjpegdec.c Fri Apr 17 12:57:47 2009 +0000 +++ b/mjpegdec.c Fri Apr 17 13:03:56 2009 +0000 @@ -885,7 +885,7 @@ int ff_mjpeg_decode_sos(MJpegDecodeContext *s) { int len, nb_components, i, h, v, predictor, point_transform; - int vmax, hmax, index, id; + int index, id; const int block_size= s->lossless ? 1 : 8; int ilv, prev_shift; @@ -897,8 +897,6 @@ av_log(s->avctx, AV_LOG_ERROR, "decode_sos: invalid len (%d)\n", len); return -1; } - vmax = 0; - hmax = 0; for(i=0;i<nb_components;i++) { id = get_bits(&s->gb, 8) - 1; av_log(s->avctx, AV_LOG_DEBUG, "component: %d\n", id);