diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-04 21:46:09 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-04 22:05:31 +0200 |
commit | 38ee8f80ea341c9d3fb2f6e20bcc0d714f6eed8e (patch) | |
tree | f51dc2168f9aaab2a8442fe3436758f45b0e8607 /libavcodec | |
parent | c1a5d06b8245b92277e6537fe70bfe6f4f31b302 (diff) | |
download | ffmpeg-38ee8f80ea341c9d3fb2f6e20bcc0d714f6eed8e.tar.gz |
avcodec/photocd: Remove set-but-unused variables
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/photocd.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/photocd.c b/libavcodec/photocd.c index 6f8426b5d2..057c9d33d4 100644 --- a/libavcodec/photocd.c +++ b/libavcodec/photocd.c @@ -227,9 +227,9 @@ static av_noinline int decode_huff(AVCodecContext *avctx, AVFrame *frame, PhotoCDContext *s = avctx->priv_data; GetBitContext g; GetByteContext *gb = &s->gb; - int ret, y = 0, type, height, y2; + int ret, y = 0, type, height; int start = s->streampos; - unsigned shiftreg, bit; + unsigned shiftreg; const int scaling = target_res - curr_res; const uint8_t type2idx[] = { 0, 0xff, 1, 2 }; @@ -239,13 +239,11 @@ static av_noinline int decode_huff(AVCodecContext *avctx, AVFrame *frame, return ret; height = img_info[curr_res].height; - y2 = avctx->height >> scaling; while (y < height) { uint8_t *data; int x2, idx; - bit = 0; for (; get_bits_left(&g) > 0;) { if ((show_bits(&g, 24) & 0xfff000) == 0xfff000) break; |