diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-10-25 10:50:02 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-10-25 10:50:02 +0000 |
commit | 6e2d5f1aeabd0abbe2ee4ff9d24c4c4ce384d77c (patch) | |
tree | 7754db6d5a43953d7f54930e7007f6f37b3cdde5 | |
parent | 945eeee15edf918564904947521c90a8d7d5b0c5 (diff) | |
download | ffmpeg-6e2d5f1aeabd0abbe2ee4ff9d24c4c4ce384d77c.tar.gz |
regression test for H263+
Originally committed as revision 1070 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/mpegvideo.c | 3 | ||||
-rw-r--r-- | tests/ffmpeg.regression.ref | 2 | ||||
-rwxr-xr-x | tests/regression.sh | 11 |
3 files changed, 14 insertions, 2 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 3e23af8078..1bf2cb4496 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -361,8 +361,7 @@ int MPV_common_init(MpegEncContext *s) /* 4mv b frame decoding table */ //note this is needed for h263 without b frames too (segfault on damaged streams otherwise) CHECKED_ALLOCZ(s->co_located_type_table, s->mb_num * sizeof(UINT8)) - - if (s->h263_pred || s->h263_plus) { + if (s->out_format == FMT_H263) { /* ac values */ CHECKED_ALLOCZ(s->ac_val[0], yc_size * sizeof(INT16) * 16); s->ac_val[1] = s->ac_val[0] + y_size; diff --git a/tests/ffmpeg.regression.ref b/tests/ffmpeg.regression.ref index 8a2622e868..cd9d8bbc89 100644 --- a/tests/ffmpeg.regression.ref +++ b/tests/ffmpeg.regression.ref @@ -9,6 +9,8 @@ ffmpeg regression test 3ed8e11a8a8147c3e7d736593fccae79 *./data/out.yuv abe11239875a32f00fa2910828bba4fb *./data/a-h263.avi c1f6c8ee7a24d8345deddf1a24ca3756 *./data/out.yuv +f022e9efcc88abcce80cc25232bc1cb1 *./data/a-h263p.avi +d53012811b639e12a88476f2c82de0ca *./data/out.yuv 8e41ac530894eaf3ecdb583d6d66c392 *./data/a-odivx.avi bf3be8fb78a9ca91dd6b252d48ce59bb *./data/out.yuv 850ba6da4c9dad60b6719b0b06b204de *./data/a-mpeg4-rc.avi diff --git a/tests/regression.sh b/tests/regression.sh index 04020c7124..b93f0631ff 100755 --- a/tests/regression.sh +++ b/tests/regression.sh @@ -24,6 +24,7 @@ else do_msmpeg4=y do_wmv1=y do_h263=y + do_h263p=y do_mpeg4=y do_mjpeg=y do_rv10=y @@ -121,6 +122,16 @@ if [ -n "$do_h263" ] ; then file=${outfile}h263.avi do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -s 352x288 -an -vcodec h263 $file +# h263 decoding +do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst +fi + +################################### +if [ -n "$do_h263p" ] ; then +# h263p encoding +file=${outfile}h263p.avi +do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -s 352x288 -an -vcodec h263p -ps 1000 $file + # h263p decoding do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst fi |