diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h
index 8135688af3af45d40418e37acb507b58dc4c18f4..07ac23f2e867e08e8a7ab79505377fb7bc4f43b8 100644
--- a/libavcodec/dsputil.h
+++ b/libavcodec/dsputil.h
@@ -412,6 +412,7 @@ typedef struct DSPContext {
 #define RECON_SHIFT 6
 
     void (*draw_edges)(uint8_t *buf, int wrap, int width, int height, int w);
+#define EDGE_WIDTH 16
 
     /* h264 functions */
     void (*h264_idct_add)(uint8_t *dst, DCTELEM *block, int stride);
diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h
index 69fee86d98b92cd617b4d7ece06632e5afd88840..fa7420a616e97430c8b65a74ddb52bfafee4e3b3 100644
--- a/libavcodec/mpegvideo.h
+++ b/libavcodec/mpegvideo.h
@@ -45,8 +45,6 @@ enum OutputFormat {
     FMT_H264,
 };
 
-#define EDGE_WIDTH 16
-
 #define MPEG_BUF_SIZE (16 * 1024)
 
 #define QMAT_SHIFT_MMX 16