diff options
author | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2016-10-28 01:38:51 +0200 |
---|---|---|
committer | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2016-11-17 23:11:22 +0100 |
commit | e622d7723bcfc4a4bbdb9d17f6db1dbc82776f57 (patch) | |
tree | 35b7aed26f1dd1808f14c7ee0a11c44628375797 /tests | |
parent | 1af7ddecda33b3f25304ae71d8421c966f1263f3 (diff) | |
download | ffmpeg-e622d7723bcfc4a4bbdb9d17f6db1dbc82776f57.tar.gz |
fate: add apng encoding/muxing test
Also test the fallback to png creation for a single frame.
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
(cherry picked from commit 97792e85c338d129342f5812e2a52048373e57d6)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/fate/avformat.mak | 1 | ||||
-rwxr-xr-x | tests/lavf-regression.sh | 9 | ||||
-rw-r--r-- | tests/ref/lavf/apng | 6 |
3 files changed, 16 insertions, 0 deletions
diff --git a/tests/fate/avformat.mak b/tests/fate/avformat.mak index 3760e41457..bbb1f9811a 100644 --- a/tests/fate/avformat.mak +++ b/tests/fate/avformat.mak @@ -1,5 +1,6 @@ FATE_LAVF-$(call ENCDEC, PCM_S16BE, AIFF) += aiff FATE_LAVF-$(call ENCDEC, PCM_ALAW, PCM_ALAW) += alaw +FATE_LAVF-$(call ENCDEC, APNG, APNG) += apng FATE_LAVF-$(call ENCDEC2, MSMPEG4V3, MP2, ASF) += asf FATE_LAVF-$(call ENCDEC, PCM_S16BE_PLANAR, AST) += ast FATE_LAVF-$(call ENCDEC, PCM_S16BE, AU) += au diff --git a/tests/lavf-regression.sh b/tests/lavf-regression.sh index 8d961781d9..941f4d1ddd 100755 --- a/tests/lavf-regression.sh +++ b/tests/lavf-regression.sh @@ -212,6 +212,15 @@ do_avconv $file $DEC_OPTS -f image2 -vcodec pgmyuv -i $raw_src $ENC_OPTS -t 1 -q do_avconv_crc $file $DEC_OPTS -i $target_path/$file -pix_fmt rgb24 fi +if [ -n "$do_apng" ] ; then +file=${outfile}lavf.apng +do_avconv $file $DEC_OPTS -f image2 -vcodec pgmyuv -i $raw_src $ENC_OPTS -t 1 -pix_fmt rgb24 +do_avconv_crc $file $DEC_OPTS -i $target_path/$file -pix_fmt rgb24 +file=${outfile}lavf.png +do_avconv $file $DEC_OPTS -f image2 -vcodec pgmyuv -i $raw_src $ENC_OPTS -pix_fmt rgb24 -frames:v 1 -f apng +do_avconv_crc $file $DEC_OPTS -i $target_path/$file -pix_fmt rgb24 +fi + if [ -n "$do_yuv4mpeg" ] ; then file=${outfile}lavf.y4m do_avconv $file $DEC_OPTS -f image2 -vcodec pgmyuv -i $raw_src $ENC_OPTS -t 1 -qscale 10 diff --git a/tests/ref/lavf/apng b/tests/ref/lavf/apng new file mode 100644 index 0000000000..4d354089ab --- /dev/null +++ b/tests/ref/lavf/apng @@ -0,0 +1,6 @@ +a4c46fad7716ad094eb3c78b74ca0244 *./tests/data/lavf/lavf.apng +6209864 ./tests/data/lavf/lavf.apng +./tests/data/lavf/lavf.apng CRC=0x87b3c15f +c5900fdd1b2fc30b985793f5226fd0c4 *./tests/data/lavf/lavf.png +248854 ./tests/data/lavf/lavf.png +./tests/data/lavf/lavf.png CRC=0xd8c7b7a1 |