[FFmpeg-devel] [PATCH] vaapi_encode: Improve log message for unsupported profiles
Mark Thompson
sw at jkqxz.net
Mon Nov 5 20:00:48 EET 2018
---
For example:
[h264_vaapi @ 0x563e95f73d00] Compatible profile VAProfileH264High (7) is not supported by driver.
[h264_vaapi @ 0x563e95f73d00] Compatible profile VAProfileH264Main (6) is not supported by driver.
[h264_vaapi @ 0x563e95f73d00] Using VAAPI profile VAProfileH264ConstrainedBaseline (13).
[h264_vaapi @ 0x563e95f73d00] Using VAAPI entrypoint VAEntrypointEncSlice (6).
libavcodec/vaapi_encode.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/libavcodec/vaapi_encode.c b/libavcodec/vaapi_encode.c
index 2fe8501287..eda8a36299 100644
--- a/libavcodec/vaapi_encode.c
+++ b/libavcodec/vaapi_encode.c
@@ -1135,8 +1135,9 @@ static av_cold int vaapi_encode_profile_entrypoint(AVCodecContext *avctx)
break;
}
if (j >= n) {
- av_log(avctx, AV_LOG_VERBOSE, "Matching profile %d is "
- "not supported by driver.\n", profile->va_profile);
+ av_log(avctx, AV_LOG_VERBOSE, "Compatible profile %s (%d) "
+ "is not supported by driver.\n", profile_string,
+ profile->va_profile);
continue;
}
--
2.19.1
More information about the ffmpeg-devel
mailing list