diff --git a/build/ffmpeg/ffmpeg.vcxproj b/build/ffmpeg/ffmpeg.vcxproj
index 5e66e6955..93c17deb8 100644
--- a/build/ffmpeg/ffmpeg.vcxproj
+++ b/build/ffmpeg/ffmpeg.vcxproj
@@ -63,12 +63,12 @@
>
-I. -I$(MSBuildThisFileDirectory) -I$(FfmpegSrcDir) -I%(Yasm.RootDir)%(Yasm.Directory)
- @(Yasm -> '%(Directory)%(Filename)').obj
+ @(Yasm -> '%(RelativeDir)%(Filename)').obj
-m x86 -DPREFIX -Pconfig-x86.asm
-m amd64 -Pconfig-x64.asm