[FFmpeg-devel] [PATCH] avcodec/nvenc: Include nvEncodeAPI v7 SDK header

James Almer jamrial at gmail.com
Mon Aug 29 21:43:52 EEST 2016


On 8/27/2016 9:58 AM, Timo Rothenpieler wrote:
> @@ -5996,6 +5992,22 @@ enabled vdpau && enabled xlib &&
>      check_lib2 "vdpau/vdpau.h vdpau/vdpau_x11.h" vdp_device_create_x11 -lvdpau &&
>      enable vdpau_x11
>  
> +case $target_os in
> +    mingw32*|mingw64*|win32|win64|linux|cygwin*)
> +        disabled nvenc || enable nvenc
> +        ;;
> +    *)
> +        disable nvenc
> +        ;;
> +esac
> +
> +if enabled nvenc; then
> +    {
> +        echo '#include "compat/nvenc/nvEncodeAPI.h"'
> +        echo 'int main(void) { return 0; }'
> +    } | check_cc -I$source_path || disable nvenc

In what situation could this test fail? nvenc is only enabled if $target_os
is one of the supported ones, and the test does nothing but compile the
header.

If it only supports x86 then you can just check "enabled x86" instead.


More information about the ffmpeg-devel mailing list