[libav-devel] [PATCH 1/2] lavc/qsvenc: ICQ/VCM/QVBR are not avilable on Linux

Luca Barbato lu_zero at gentoo.org
Thu Dec 7 10:41:32 CET 2017


On 07/12/2017 07:44, Zhong Li wrote:
> Signed-off-by: Zhong Li <zhong.li at intel.com>
> ---
>   libavcodec/qsvenc.h | 7 +++++++
>   1 file changed, 7 insertions(+)
> 
> diff --git a/libavcodec/qsvenc.h b/libavcodec/qsvenc.h
> index 9b0b84b..7f11460 100644
> --- a/libavcodec/qsvenc.h
> +++ b/libavcodec/qsvenc.h
> @@ -43,9 +43,16 @@
>   
>   #define QSV_HAVE_LA     QSV_VERSION_ATLEAST(1, 7)
>   #define QSV_HAVE_LA_HRD QSV_VERSION_ATLEAST(1, 11)
> +
> +#if defined(_WIN32)
>   #define QSV_HAVE_ICQ    QSV_VERSION_ATLEAST(1, 8)
>   #define QSV_HAVE_VCM    QSV_VERSION_ATLEAST(1, 8)
>   #define QSV_HAVE_QVBR   QSV_VERSION_ATLEAST(1, 11)
> +#else
> +#define QSV_HAVE_ICQ    0
> +#define QSV_HAVE_VCM    0
> +#define QSV_HAVE_QVBR   0
> +#endif
>   
>   #define QSV_COMMON_OPTS \
>   { "async_depth", "Maximum processing parallelism", OFFSET(qsv.async_depth), AV_OPT_TYPE_INT, { .i64 = ASYNC_DEPTH_DEFAULT }, 0, INT_MAX, VE },  \
> 

Sounds fine for now at least :)

lu


More information about the libav-devel mailing list