diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-04-25 16:14:13 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-04-25 16:14:13 +0000 |
commit | 49f3806dd8d9f910af0941cad7f86f05985b667b (patch) | |
tree | 0441c5f74b3e95a827b8d50c8028ad3112ad3a29 | |
parent | 7aae316869feda22d86406bc900e12a5b7029c05 (diff) | |
download | ffmpeg-49f3806dd8d9f910af0941cad7f86f05985b667b.tar.gz |
rv10 decoding fix
Originally committed as revision 3068 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/h263.c | 2 | ||||
-rw-r--r-- | tests/ffmpeg.regression.ref | 4 | ||||
-rw-r--r-- | tests/rotozoom.regression.ref | 4 |
3 files changed, 6 insertions, 4 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); diff --git a/tests/ffmpeg.regression.ref b/tests/ffmpeg.regression.ref index 8afdfe3bf5..7ddcb8c6df 100644 --- a/tests/ffmpeg.regression.ref +++ b/tests/ffmpeg.regression.ref @@ -89,8 +89,8 @@ stddev: 8.87 PSNR:29.15 bytes:7602176 stddev: 0.00 PSNR:99.99 bytes:7602176 4fcfeba819177ad440bd16b0f095ba45 *./data/a-rv10.rm 671633 ./data/a-rv10.rm -9092124e1694baf96c1abc4fed26e072 *./data/out.yuv -stddev: 14.17 PSNR:25.09 bytes:7602176 +bb31a08b20cfabc5332d11938e2f9352 *./data/out.yuv +stddev: 8.09 PSNR:29.96 bytes:7602176 89ad858355f9b0a92d024c5ba6e369dd *./data/a-asv1.avi 2292416 ./data/a-asv1.avi b3e1696d73071c8f7f0ff4e10c1677ca *./data/out.yuv diff --git a/tests/rotozoom.regression.ref b/tests/rotozoom.regression.ref index 41234db85f..32941246ca 100644 --- a/tests/rotozoom.regression.ref +++ b/tests/rotozoom.regression.ref @@ -89,8 +89,8 @@ dde5895817ad9d219f79a52d0bdfb001 *./data/out.yuv stddev: 0.00 PSNR:99.99 bytes:7602176 53a73b773cf790c9379c875ffa73bce5 *./data/a-rv10.rm 157035 ./data/a-rv10.rm -fea195d6d9b57893dc68d1b36229a299 *./data/out.yuv -stddev: 13.52 PSNR:25.50 bytes:7602176 +dd1d762e16189ebc4e35edba973d409a *./data/out.yuv +stddev: 5.52 PSNR:33.27 bytes:7602176 9c4f5a4613a5595c90c6b99bf143b6a9 *./data/a-asv1.avi 1433376 ./data/a-asv1.avi 4251d7f496bbf362251b065e840a1b73 *./data/out.yuv |