aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-04-25 16:14:13 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-04-25 16:14:13 +0000
commit49f3806dd8d9f910af0941cad7f86f05985b667b (patch)
tree0441c5f74b3e95a827b8d50c8028ad3112ad3a29 /libavcodec
parent7aae316869feda22d86406bc900e12a5b7029c05 (diff)
downloadffmpeg-49f3806dd8d9f910af0941cad7f86f05985b667b.tar.gz
rv10 decoding fix
Originally committed as revision 3068 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h263.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c
index ec776eb980..28707b2d59 100644
--- a/libavcodec/h263.c
+++ b/libavcodec/h263.c
@@ -4433,6 +4433,8 @@ static int h263_decode_block(MpegEncContext * s, DCTELEM * block,
}
} else {
level = get_bits(&s->gb, 8);
+ if (level == 255)
+ level = 128;
}
}else{
level = get_bits(&s->gb, 8);