summaryrefslogtreecommitdiff
path: root/libavcodec/vaapi_encode.c
diff options
context:
space:
mode:
authorJun Zhao <jun.zhao@intel.com>2017-12-19 14:13:58 +0800
committerMark Thompson <sw@jkqxz.net>2017-12-19 23:02:31 +0000
commita31a48261164f2ec7d218f541891086f930b090b (patch)
treee135febd9191f2db0fb4b8870b952fdfcadfa892 /libavcodec/vaapi_encode.c
parentda032427786d9db4ab21014998cb1245083d6c85 (diff)
lavc/vaapi_encode: give a debug message if attrs unsupported.
Give a debug message when query attribute get VA_ATTRIB_NOT_SUPPORTED, it's will help to trace and debug some issue. Signed-off-by: Jun Zhao <jun.zhao@intel.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>
Diffstat (limited to 'libavcodec/vaapi_encode.c')
-rw-r--r--libavcodec/vaapi_encode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vaapi_encode.c b/libavcodec/vaapi_encode.c
index 590f4be4ed..550ea47991 100644
--- a/libavcodec/vaapi_encode.c
+++ b/libavcodec/vaapi_encode.c
@@ -1036,6 +1036,8 @@ static av_cold int vaapi_encode_config_attributes(AVCodecContext *avctx)
// Unfortunately we have to treat this as "don't know" and hope
// for the best, because the Intel MJPEG encoder returns this
// for all the interesting attributes.
+ av_log(avctx, AV_LOG_DEBUG, "Attribute (%d) is not supported.\n",
+ attr[i].type);
continue;
}
switch (attr[i].type) {