lavc/vaapi_encode: give a debug message if attrs unsupported.
authorJun Zhao <jun.zhao@intel.com>
Tue, 19 Dec 2017 06:13:58 +0000 (14:13 +0800)
committerMark Thompson <sw@jkqxz.net>
Tue, 19 Dec 2017 23:02:31 +0000 (23:02 +0000)
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>
libavcodec/vaapi_encode.c

index 590f4be..550ea47 100644 (file)
@@ -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) {