diff mbox

[FFmpeg-devel] vaapi_encode: Improve log message for unsupported profiles

Message ID 292d837b-25ea-9c88-246d-e528e2ca14c8@jkqxz.net
State Accepted
Commit b67435702090e9a4f6f284d276ac2df0aafc00df
Headers show

Commit Message

Mark Thompson Nov. 5, 2018, 6 p.m. UTC
---
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 mbox

Patch

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;
         }