lavc/libdavs2: enable multithread
authorhwrenx <hwrenx@126.com>
Wed, 26 Dec 2018 11:14:33 +0000 (19:14 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Wed, 26 Dec 2018 11:14:33 +0000 (19:14 +0800)
Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
Signed-off-by: hwrenx <hwrenx@126.com>
libavcodec/libdavs2.c

index 37635bb..2846ecf 100644 (file)
@@ -205,7 +205,7 @@ AVCodec ff_libdavs2_decoder = {
     .init           = davs2_init,
     .close          = davs2_end,
     .decode         = davs2_decode_frame,
-    .capabilities   =  AV_CODEC_CAP_DELAY,//AV_CODEC_CAP_DR1 |
+    .capabilities   =  AV_CODEC_CAP_DELAY | AV_CODEC_CAP_AUTO_THREADS,
     .pix_fmts       = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P,
                                                      AV_PIX_FMT_NONE },
     .wrapper_name   = "libdavs2",