gcc 4.9.2 编译 ffmpeg-git-1aeb88b 是出现如下错误

> FFmpeg fails to make with:
>
> CC libavcodec/dxva2.o
> In file included from libavcodec/dxva2_internal.h:26:0,
> from libavcodec/dxva2.c:23:
> libavcodec/dxva2.h:40:5: error: unknown type name 'IDirectXVideoDecoder'
> libavcodec/dxva2.h:45:5: error: unknown type name
> 'DXVA2_ConfigPictureDecode'
> libavcodec/dxva2.h:55:5: error: unknown type name 'LPDIRECT3DSURFACE9'
> In file included from libavcodec/dxva2.c:23:0:
> libavcodec/dxva2_internal.h:36:28: error: unknown type name
> 'DXVA2_DecodeBufferDesc'
> libavcodec/dxva2_internal.h:45:51: error: unknown type name
> 'DXVA2_DecodeBufferDesc'
> libavcodec/dxva2_internal.h:46:51: error: unknown type name
> 'DXVA2_DecodeBufferDesc'
> libavcodec/dxva2.c:46:28: error: unknown type name 'DXVA2_DecodeBufferDesc'
> libavcodec/dxva2.c:83:51: error: unknown type name 'DXVA2_DecodeBufferDesc'
> libavcodec/dxva2.c:84:51: error: unknown type name 'DXVA2_DecodeBufferDesc'
> make: *** [libavcodec/dxva2.o] Error 1 折腾了好久 用 gcc 4.5.2 编译就顺利通过.

解决方法
https://code.csdn.net/bygreen/ffmpeg_ffplay_vc2010/tree/master/include/dxva2api.h

文件拷贝到系统 include\dxva2api.h 目录下

最新文章

  1. 简单研究Android View绘制三 布局过程
  2. asp.net mvc SelectList 的selected 失效及解决方案
  3. BZOJ4443:[SCO2015]小凸玩矩阵
  4. C语言学习-01第一个C语言程序
  5. linux中mysql基本操作
  6. 二十四种设计模式:外观模式(Facade Pattern)
  7. [python 2.7.5] 实现配置文件的读写
  8. PHP 各种函数
  9. nginx+ffmpeg搭建rtmp转播rtsp流的flash服务器
  10. Linq101-Miscellaneous
  11. linux下归档、解压缩工具:tar命令
  12. multiprocessing模块
  13. 运用SqlSugar框架+Axios写的增删查案例
  14. [ABP] ASP.NET Zero 5.6.0 之 ASP.NET Zero Power Tools 上手日志
  15. spring boot -thymeleaf-日期转化
  16. dapper 多对多查询对象和对象列表
  17. generate failed: Cannot resolve classpath entry: mysql-connector-java-5.1.38.jar
  18. sqlite3在Linux下的安装和使用
  19. Python解释器种类以及特点 (经典概括, 便于理解和记忆)
  20. 基于jQuery的TreeGrid组件

热门文章

  1. MVC的URL路由规则
  2. Linux Kernel Synchronization && Mutual Exclusion、Linux Kernel Lock Mechanism Summarize
  3. 项目总结—jQuery EasyUI-DataGrid动态加载表头
  4. Nginx 配置文件详解
  5. How to Write and Publish a Scientific Paper: 7th Edition(科技论文写作与发表教程)(11.04更新)
  6. Conjugate prior relationships
  7. mysql大表如何优化
  8. 转:Java NIO系列教程(一)Java NIO 概述
  9. Entity Framework 系统约定配置
  10. 抓包工具 wireshark