diff --git a/libavcodec/costablegen.c b/libavcodec/costablegen.c
index 8a33fd4cf7c97fbebfa164b5c5c1e5e54d10a006..f82fb042fb350c3a86fad17d062180d9750e7012 100644
--- a/libavcodec/costablegen.c
+++ b/libavcodec/costablegen.c
@@ -37,7 +37,7 @@ int main(int argc, char *argv[])
     double (*func)(double) = do_sin ? sin : cos;
 
     printf("/* This file was generated by libavcodec/costablegen */\n");
-    printf("#include \"dsputil.h\"\n");
+    printf("#include \"libavcodec/dsputil.h\"\n");
     for (i = 4; i <= BITS; i++) {
         int m = 1 << i;
         double freq = 2*M_PI/m;
diff --git a/libavcodec/mpegaudio_tablegen.h b/libavcodec/mpegaudio_tablegen.h
index cab56ebdd535953850378db22af3082be4f6602b..362c30b4beb15a774adb583ce42ec84283b0b5fe 100644
--- a/libavcodec/mpegaudio_tablegen.h
+++ b/libavcodec/mpegaudio_tablegen.h
@@ -31,7 +31,7 @@
 #define TABLE_4_3_SIZE (8191 + 16)*4
 #if CONFIG_HARDCODED_TABLES
 #define mpegaudio_tableinit()
-#include "mpegaudio_tables.h"
+#include "libavcodec/mpegaudio_tables.h"
 #else
 static int8_t  table_4_3_exp[TABLE_4_3_SIZE];
 static uint32_t table_4_3_value[TABLE_4_3_SIZE];