Commit bd358e12 authored by Michael Niedermayer's avatar Michael Niedermayer

jpeglsdec: fix infinite loop

Fixes Ticket331
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 42d4df06
......@@ -86,6 +86,8 @@ static inline void ff_jpegls_downscale_state(JLSState *state, int Q){
}
static inline int ff_jpegls_update_state_regular(JLSState *state, int Q, int err){
if(FFABS(err) > 0xFFFF)
return -0x10000;
state->A[Q] += FFABS(err);
err *= state->twonear;
state->B[Q] += err;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment