Originally committed as revision 661 to svn://svn.ffmpeg.org/ffmpeg/trunk
if (sign)
val = -val;
val += pred;
-
+
/* modulo decoding */
if (!s->h263_long_vectors) {
l = (1 << (f_code - 1)) * 32;
fprintf(stderr, "illegal 3. esc, esc 1 encoding possible\n");
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");
return DECODING_AC_LOST;
}