mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-12 04:44:25 +00:00
run1 can be <0 bugfix (found by fabrice)
Originally committed as revision 661 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
03c94ede93
commit
dd536160cd
@ -2704,7 +2704,7 @@ static int h263_decode_motion(MpegEncContext * s, int pred, int f_code)
|
|||||||
if (sign)
|
if (sign)
|
||||||
val = -val;
|
val = -val;
|
||||||
val += pred;
|
val += pred;
|
||||||
|
|
||||||
/* modulo decoding */
|
/* modulo decoding */
|
||||||
if (!s->h263_long_vectors) {
|
if (!s->h263_long_vectors) {
|
||||||
l = (1 << (f_code - 1)) * 32;
|
l = (1 << (f_code - 1)) * 32;
|
||||||
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user