diff --git a/build/ffmpeg/ffmpeg.vcxproj b/build/ffmpeg/ffmpeg.vcxproj
index 0f00474fa..13c5f7cc2 100644
--- a/build/ffmpeg/ffmpeg.vcxproj
+++ b/build/ffmpeg/ffmpeg.vcxproj
@@ -54,33 +54,69 @@
false
$(FfmpegSrcDir)
+
+ $(FfmpegSrcDir)\
+
- YasmAssemble;
+ _YasmAssemble;
$(BuildCompileTargets)
+
+
+
+
+ %(Yasm.RelativeDir)
+ $(InputRelativeDir.Replace("%(Yasm.InputRelativeSourceDir)",""))
+ %(Yasm.InputRelativeSourceDir)
+ $(InputRelativeSourceDir)\
+ $(InputRelativeDir.Replace("$(InputRelativeSourceDir)",""))
+
+
+
+ $(AegisubObjectDir)$(InputRelativeDir)
+
+
+
+
+
+
-I. -I$(MSBuildThisFileDirectory) -I$(FfmpegSrcDir) -I%(Yasm.RootDir)%(Yasm.Directory)
- @(Yasm -> '%(Directory)%(Filename)').obj
+ @(Yasm -> '%(OutputDir)%(Filename)').obj
-m x86 -DPREFIX -Pconfig-x86.asm
-m amd64 -Pconfig-x64.asm
-
-
-
+
+
+