summaryrefslogtreecommitdiff
path: root/libavcodec/h263.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-06-04 18:35:31 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-06-04 18:35:31 +0000
commitdd536160cd5f09addec234bcd75d57b0730412a6 (patch)
tree7d209f708fcb753e1d74cb1ae0e0d398525f002f /libavcodec/h263.c
parent03c94ede9365c22855c4f63941a13d0a4574f7a4 (diff)
run1 can be <0 bugfix (found by fabrice)
Originally committed as revision 661 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263.c')
-rw-r--r--libavcodec/h263.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c
index 588047b29a..c1a6af95d2 100644
--- a/libavcodec/h263.c
+++ b/libavcodec/h263.c
@@ -2704,7 +2704,7 @@ static int h263_decode_motion(MpegEncContext * s, int pred, int f_code)
if (sign)
val = -val;
val += pred;
-
+
/* modulo decoding */
if (!s->h263_long_vectors) {
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");
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;
}