mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/photocd: Remove set-but-unused variables
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
c1a5d06b82
commit
38ee8f80ea
@ -227,9 +227,9 @@ static av_noinline int decode_huff(AVCodecContext *avctx, AVFrame *frame,
|
|||||||
PhotoCDContext *s = avctx->priv_data;
|
PhotoCDContext *s = avctx->priv_data;
|
||||||
GetBitContext g;
|
GetBitContext g;
|
||||||
GetByteContext *gb = &s->gb;
|
GetByteContext *gb = &s->gb;
|
||||||
int ret, y = 0, type, height, y2;
|
int ret, y = 0, type, height;
|
||||||
int start = s->streampos;
|
int start = s->streampos;
|
||||||
unsigned shiftreg, bit;
|
unsigned shiftreg;
|
||||||
const int scaling = target_res - curr_res;
|
const int scaling = target_res - curr_res;
|
||||||
const uint8_t type2idx[] = { 0, 0xff, 1, 2 };
|
const uint8_t type2idx[] = { 0, 0xff, 1, 2 };
|
||||||
|
|
||||||
@ -239,13 +239,11 @@ static av_noinline int decode_huff(AVCodecContext *avctx, AVFrame *frame,
|
|||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
height = img_info[curr_res].height;
|
height = img_info[curr_res].height;
|
||||||
y2 = avctx->height >> scaling;
|
|
||||||
|
|
||||||
while (y < height) {
|
while (y < height) {
|
||||||
uint8_t *data;
|
uint8_t *data;
|
||||||
int x2, idx;
|
int x2, idx;
|
||||||
|
|
||||||
bit = 0;
|
|
||||||
for (; get_bits_left(&g) > 0;) {
|
for (; get_bits_left(&g) > 0;) {
|
||||||
if ((show_bits(&g, 24) & 0xfff000) == 0xfff000)
|
if ((show_bits(&g, 24) & 0xfff000) == 0xfff000)
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user