diff --git a/libavcodec/vdpau_internal.h b/libavcodec/vdpau_internal.h
index 9a4989009e04cfb9a28a4608c4422f92ba6a58cc..cefd97754a811c49a4969e5ae84d30934c3aa45b 100644
--- a/libavcodec/vdpau_internal.h
+++ b/libavcodec/vdpau_internal.h
@@ -25,6 +25,7 @@
 #define AVCODEC_VDPAU_INTERNAL_H
 
 #include <stdint.h>
+#include "mpegvideo.h"
 
 void ff_vdpau_add_data_chunk(MpegEncContext *s, const uint8_t *buf,
                              int buf_size);