diff --git a/tests/fate/avformat.mak b/tests/fate/avformat.mak
index 02c1345434fe50926d1655b48569772423471e8c..bcfe2e3318738a82a018fa65342651ef04f82f15 100644
--- a/tests/fate/avformat.mak
+++ b/tests/fate/avformat.mak
@@ -70,6 +70,7 @@ FATE_LAVF_FATE-$(call ALLYES, MATROSKA_DEMUXER   OGG_MUXER)          += ogg_vp3
 FATE_LAVF_FATE-$(call ALLYES, MOV_DEMUXER        LATM_MUXER)         += latm
 FATE_LAVF_FATE-$(call ALLYES, MP3_DEMUXER        MP3_MUXER)          += mp3
 FATE_LAVF_FATE-$(call ALLYES, MOV_DEMUXER        MOV_MUXER)          += mov_qtrle_mace6
+FATE_LAVF_FATE-$(call ALLYES, AVI_DEMUXER        AVI_MUXER)          += avi_cram
 
 FATE_LAVF_FATE +=  $(FATE_LAVF_FATE-yes:%=fate-lavf-fate-%)
 $(FATE_LAVF_FATE): CMD = lavffatetest
diff --git a/tests/lavf-regression.sh b/tests/lavf-regression.sh
index a21948893525481b424e39686acc039220db159f..f390dd9035e8eea75883fa3cdd84de1ae1626fb7 100755
--- a/tests/lavf-regression.sh
+++ b/tests/lavf-regression.sh
@@ -170,6 +170,10 @@ DEC_OPTS="$DEC_OPTS -idct auto"
 do_lavf_fate mov "qtrle/Animation-16Greys.mov"
 fi
 
+if [ -n "$do_avi_cram" ] ; then
+DEC_OPTS="$DEC_OPTS -idct auto"
+do_lavf_fate avi "cram/toon.avi"
+fi
 
 if [ -n "$do_wtv" ] ; then
 do_lavf wtv "" "-acodec mp2 -threads 1"
diff --git a/tests/ref/lavf-fate/avi_cram b/tests/ref/lavf-fate/avi_cram
new file mode 100644
index 0000000000000000000000000000000000000000..7864ab92a7a1633cdf5a55cb204a3f1b79ef27f1
--- /dev/null
+++ b/tests/ref/lavf-fate/avi_cram
@@ -0,0 +1,3 @@
+e202447ccd6660149c17070204d258a4 *./tests/data/lavf-fate/lavf.avi
+928228 ./tests/data/lavf-fate/lavf.avi
+./tests/data/lavf-fate/lavf.avi CRC=0xa4770de2