libavcodec/dxva2.h:40:5: error: unknown type name 'IDirectXVideoDecoder'


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 目录下

你可能感兴趣的:(decode)