mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-03-13 09:00:40 +08:00
avcodec/jpegls: clear more JLSState fields inside ff_jpegls_init_state()
This commit is contained in:
@@ -49,6 +49,10 @@ void ff_jpegls_init_state(JLSState *state)
|
||||
state->A[i] = FFMAX(state->range + 32 >> 6, 2);
|
||||
state->N[i] = 1;
|
||||
}
|
||||
|
||||
memset(state->B, 0, sizeof(state->B));
|
||||
memset(state->C, 0, sizeof(state->C));
|
||||
memset(state->run_index, 0, sizeof(state->run_index));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -376,7 +376,6 @@ int ff_jpegls_decode_picture(MJpegDecodeContext *s)
|
||||
cur = s->picture_ptr->data[0];
|
||||
|
||||
/* initialize JPEG-LS state from JPEG parameters */
|
||||
memset(state, 0, sizeof(*state));
|
||||
state->near = near;
|
||||
state->bpp = (s->bits < 2) ? 2 : s->bits;
|
||||
state->maxval = s->maxval;
|
||||
|
||||
Reference in New Issue
Block a user