Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Nir Ben David authored on 2011/11/11 07:03:48... | ... |
@@ -302,6 +302,8 @@ static inline int get_ur_golomb_jpegls(GetBitContext *gb, int k, int limit, int |
302 | 302 |
}else{ |
303 | 303 |
int i; |
304 | 304 |
for(i=0; SHOW_UBITS(re, gb, 1) == 0; i++){ |
305 |
+ if (get_bits_left(gb)<=0) |
|
306 |
+ return -1; |
|
305 | 307 |
LAST_SKIP_BITS(re, gb, 1); |
306 | 308 |
UPDATE_CACHE(re, gb); |
307 | 309 |
} |