lavc/kvazaar: fix auto thread flag in kvazaar wrapper.
authorJun Zhao <mypopydev@gmail.com>
Sun, 18 Nov 2018 16:12:21 +0000 (00:12 +0800)
committerJun Zhao <jun.zhao@intel.com>
Sun, 2 Dec 2018 03:05:28 +0000 (11:05 +0800)
Now the kvazaar warpper didn't setting the threads for kvazaar API,
and kavzaar will auto selecte the thread number.

Signed-off-by: Jun Zhao <mypopydev@gmail.com>
libavcodec/libkvazaar.c

index 5bc5b4e..8f50bef 100644 (file)
@@ -293,7 +293,7 @@ AVCodec ff_libkvazaar_encoder = {
     .long_name        = NULL_IF_CONFIG_SMALL("libkvazaar H.265 / HEVC"),
     .type             = AVMEDIA_TYPE_VIDEO,
     .id               = AV_CODEC_ID_HEVC,
-    .capabilities     = AV_CODEC_CAP_DELAY,
+    .capabilities     = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_AUTO_THREADS,
     .pix_fmts         = pix_fmts,
 
     .priv_class       = &class,