avcodec/dnxhdenc: enable frame threading
authorPaul B Mahol <onemda@gmail.com>
Mon, 26 Jun 2017 07:22:58 +0000 (09:22 +0200)
committerPaul B Mahol <onemda@gmail.com>
Thu, 27 Jul 2017 13:23:45 +0000 (15:23 +0200)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/dnxhdenc.c

index 6e9b54d..f8bf7db 100644 (file)
@@ -1391,7 +1391,7 @@ AVCodec ff_dnxhd_encoder = {
     .init           = dnxhd_encode_init,
     .encode2        = dnxhd_encode_picture,
     .close          = dnxhd_encode_end,
-    .capabilities   = AV_CODEC_CAP_SLICE_THREADS,
+    .capabilities   = AV_CODEC_CAP_SLICE_THREADS | AV_CODEC_CAP_FRAME_THREADS | AV_CODEC_CAP_INTRA_ONLY,
     .pix_fmts       = (const enum AVPixelFormat[]) {
         AV_PIX_FMT_YUV422P,
         AV_PIX_FMT_YUV422P10,