diff --git a/modules/video_filter/Modules.am b/modules/video_filter/Modules.am
index 1b2a320b164d0b65a8942e3187b92b66f9d8f3e3..1b2909504b86137962ebacef41d618bdf7aca596 100644
--- a/modules/video_filter/Modules.am
+++ b/modules/video_filter/Modules.am
@@ -41,6 +41,6 @@ SOURCES_croppadd = croppadd.c
 SOURCES_blendbench = blendbench.c
 SOURCES_chain = chain.c
 SOURCES_postproc = postproc.c
-SOURCES_swscale = swscale.c ../codec/ffmpeg/chroma.h
-SOURCES_imgresample = imgresample.c ../codec/ffmpeg/chroma.h
+SOURCES_swscale = swscale.c ../codec/avcodec/chroma.h
+SOURCES_imgresample = imgresample.c ../codec/avcodec/chroma.h
 noinst_HEADERS = filter_common.h filter_picture.h