This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
avcodec/jpeglsdec: check err value for ls_get_code_runterm()
Fixes infinite loop Fixes Ticket3086 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.2-rc1
Michael Niedermayer
11 years ago
parent
4fab08c94f
commit
cc0e47b550
1 changed files
with
2 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
libavcodec/jpeglsdec.c
+ 2
- 0
libavcodec/jpeglsdec.c
View File
@@ -148,6 +148,8 @@ static inline int ls_get_code_runterm(GetBitContext *gb, JLSState *state,
ret = ret >> 1;
ret = ret >> 1;
}
}
if(FFABS(ret) > 0xFFFF)
return -0x10000;
/* update state */
/* update state */
state->A[Q] += FFABS(ret) - RItype;
state->A[Q] += FFABS(ret) - RItype;
ret *= state->twonear;
ret *= state->twonear;
Write
Preview
Loading…
Cancel
Save