On 13.04.2020 17:33, Mark Thompson wrote:
NOT TESTED.
Fails to build:
In file included from libavcodec/nvenc_hevc.c:24:
libavcodec/nvenc.h:220:14: error: unknown type name ‘AVCodecHWConfigInternal’
220 | extern const AVCodecHWConfigInternal *ff_nvenc_hw_configs[];
| ^~~~~~~~~~~~~~~~~~~~~~~
libavcodec/nvenc_hevc.c:211:23: warning: initialization of ‘const struct
AVCodecHWConfigInternal **’ from incompatible pointer type ‘const int **’
[-Wincompatible-pointer-types]
211 | .hw_configs = ff_nvenc_hw_configs,
| ^~~~~~~~~~~~~~~~~~~
libavcodec/nvenc_hevc.c:211:23: note: (near initialization for
‘ff_hevc_nvenc_encoder.hw_configs’)
In file included from libavcodec/nvenc.c:24:
libavcodec/nvenc.h:220:14: error: unknown type name ‘AVCodecHWConfigInternal’
220 | extern const AVCodecHWConfigInternal *ff_nvenc_hw_configs[];
| ^~~~~~~~~~~~~~~~~~~~~~~
libavcodec/nvenc.c:59:32: error: conflicting types for ‘ff_nvenc_hw_configs’
59 | const AVCodecHWConfigInternal *ff_nvenc_hw_configs[] = {
| ^~~~~~~~~~~~~~~~~~~
In file included from libavcodec/nvenc.c:24:
libavcodec/nvenc.h:220:39: note: previous declaration of ‘ff_nvenc_hw_configs’
was here
220 | extern const AVCodecHWConfigInternal *ff_nvenc_hw_configs[];
| ^~~~~~~~~~~~~~~~~~~
CC libavcodec/parsers.o
In file included from libavcodec/nvenc.c:33:
libavcodec/hwconfig.h:91:28: error: ‘AV_HWDEVICE_TYPE_D3D11’ undeclared here
(not in a function); did you mean ‘AV_HWDEVICE_TYPE_D3D11VA’?
91 | .device_type = AV_HWDEVICE_TYPE_ ## device_type_, \
| ^~~~~~~~~~~~~~~~~
libavcodec/hwconfig.h:91:28: note: in definition of macro ‘HW_CONFIG_ENCODER’
91 | .device_type = AV_HWDEVICE_TYPE_ ## device_type_, \
| ^~~~~~~~~~~~~~~~~
libavcodec/nvenc.c:63:5: note: in expansion of macro ‘HW_CONFIG_ENCODER_FRAMES’
63 | HW_CONFIG_ENCODER_FRAMES(D3D11, D3D11),
| ^~~~~~~~~~~~~~~~~~~~~~~~
make: *** [ffbuild/common.mak:59: libavcodec/nvenc_hevc.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from libavcodec/nvenc_h264.c:24:
libavcodec/nvenc.h:220:14: error: unknown type name ‘AVCodecHWConfigInternal’
220 | extern const AVCodecHWConfigInternal *ff_nvenc_hw_configs[];
| ^~~~~~~~~~~~~~~~~~~~~~~
libavcodec/nvenc_h264.c:256:23: warning: initialization of ‘const struct
AVCodecHWConfigInternal **’ from incompatible pointer type ‘const int **’
[-Wincompatible-pointer-types]
256 | .hw_configs = ff_nvenc_hw_configs,
| ^~~~~~~~~~~~~~~~~~~
libavcodec/nvenc_h264.c:256:23: note: (near initialization for
‘ff_h264_nvenc_encoder.hw_configs’)
make: *** [ffbuild/common.mak:59: libavcodec/nvenc_h264.o] Error 1
make: *** [ffbuild/common.mak:59: libavcodec/nvenc.o] Error 1
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".