]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/dxva2_h264.c
dds: validate compressed source buffer size
[ffmpeg] / libavcodec / dxva2_h264.c
index a4a88ce61de16995170c62279559cce8ff34e71a..8f7c4a7eb0555e72e0cefd76d964a7391d9ef5a3 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#include "dxva2_internal.h"
 #include "h264.h"
 #include "h264data.h"
 #include "mpegutils.h"
 
+// The headers above may include w32threads.h, which uses the original
+// _WIN32_WINNT define, while dxva2_internal.h redefines it to target a
+// potentially newer version.
+#include "dxva2_internal.h"
+
 struct dxva2_picture_context {
     DXVA_PicParams_H264   pp;
     DXVA_Qmatrix_H264     qm;