summaryrefslogtreecommitdiff
path: root/libavcodec/vaapi_encode_h264.c
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2017-10-01 22:51:13 +0100
committerMark Thompson <sw@jkqxz.net>2017-10-24 23:55:29 +0100
commitf0a978a519167e5ad5dd479245a7b5da77488d43 (patch)
treec234bcc66f7d6036e3b7152b265d95270022d62a /libavcodec/vaapi_encode_h264.c
parenta126b67e1b01d5886afaa6bcad108a85392ce15c (diff)
vaapi: Remove H.264 baseline profile
This has been deprecated in libva2 because hardware does not and will not support it. Therefore never consider it for decode, and for encode assume the user meant constrained baseline profile instead.
Diffstat (limited to 'libavcodec/vaapi_encode_h264.c')
-rw-r--r--libavcodec/vaapi_encode_h264.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/vaapi_encode_h264.c b/libavcodec/vaapi_encode_h264.c
index 1288249be7..3ff19d2c83 100644
--- a/libavcodec/vaapi_encode_h264.c
+++ b/libavcodec/vaapi_encode_h264.c
@@ -863,12 +863,13 @@ static av_cold int vaapi_encode_h264_init(AVCodecContext *avctx)
ctx->codec = &vaapi_encode_type_h264;
switch (avctx->profile) {
+ case FF_PROFILE_H264_BASELINE:
+ av_log(avctx, AV_LOG_WARNING, "H.264 baseline profile is not "
+ "supported, using constrained baseline profile instead.\n");
+ avctx->profile = FF_PROFILE_H264_CONSTRAINED_BASELINE;
case FF_PROFILE_H264_CONSTRAINED_BASELINE:
ctx->va_profile = VAProfileH264ConstrainedBaseline;
break;
- case FF_PROFILE_H264_BASELINE:
- ctx->va_profile = VAProfileH264Baseline;
- break;
case FF_PROFILE_H264_MAIN:
ctx->va_profile = VAProfileH264Main;
break;