diff --git a/tests/fate/aac.mak b/tests/fate/aac.mak
index 7ed5b7b382350024e6c906ec59c68de99f3c00eb..5c2c2fc0d9148534955def9803b952a6110116d6 100644
--- a/tests/fate/aac.mak
+++ b/tests/fate/aac.mak
@@ -93,7 +93,7 @@ fate-aac-aref-encode: SIZE_TOLERANCE = 2464
 FATE_AAC_ENCODE += fate-aac-ln-encode
 fate-aac-ln-encode: CMD = enc_dec_pcm adts wav s16le $(REF) -strict -2 -c:a aac -b:a 512k
 fate-aac-ln-encode: CMP = stddev
-fate-aac-ln-encode: REF = $(SAMPLES)/audio-reference/luckynight_2ch_44kHz_s16.wav
+fate-aac-ln-encode: REF = $(TARGET_SAMPLES)/audio-reference/luckynight_2ch_44kHz_s16.wav
 fate-aac-ln-encode: CMP_SHIFT = -4096
 fate-aac-ln-encode: CMP_TARGET = 65
 fate-aac-ln-encode: SIZE_TOLERANCE = 3560
diff --git a/tests/fate/opus.mak b/tests/fate/opus.mak
index 8470e64e04e498400344cf6b0ab696b3ea100315..b13d86c138ecd1de3dc616df94aab31840a17d6a 100644
--- a/tests/fate/opus.mak
+++ b/tests/fate/opus.mak
@@ -15,7 +15,7 @@ define FATE_OPUS_TEST
 FATE_OPUS     += fate-opus-$(1)
 FATE_OPUS$(2) += fate-opus-$(1)
 fate-opus-$(1): CMD = ffmpeg -i $(TARGET_SAMPLES)/opus/$(1).mka -f s16le -
-fate-opus-$(1): REF = $(TARGET_SAMPLES)/opus/$(1).dec
+fate-opus-$(1): REF = $(SAMPLES)/opus/$(1).dec
 endef
 
 $(foreach N,$(OPUS_CELT_SAMPLES),  $(eval $(call FATE_OPUS_TEST,$(N),_CELT)))