Commit 775243b1 authored by michaelni's avatar michaelni

run1 can be <0 bugfix (found by fabrice)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@661 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent eed5b21f
...@@ -2966,7 +2966,7 @@ static inline int mpeg4_decode_block(MpegEncContext * s, DCTELEM * block, ...@@ -2966,7 +2966,7 @@ static inline int mpeg4_decode_block(MpegEncContext * s, DCTELEM * block,
fprintf(stderr, "illegal 3. esc, esc 1 encoding possible\n"); fprintf(stderr, "illegal 3. esc, esc 1 encoding possible\n");
return DECODING_AC_LOST; return DECODING_AC_LOST;
} }
if(abs_level <= rl->max_level[last][run1]){ if(run1 >= 0 && abs_level <= rl->max_level[last][run1]){
fprintf(stderr, "illegal 3. esc, esc 2 encoding possible\n"); fprintf(stderr, "illegal 3. esc, esc 2 encoding possible\n");
return DECODING_AC_LOST; return DECODING_AC_LOST;
} }
......
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