dvenc: mark encoder as intra
authorChristophe Gisquet <christophe.gisquet@gmail.com>
Wed, 15 Oct 2014 16:37:34 +0000 (18:37 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 28 Oct 2014 11:48:58 +0000 (12:48 +0100)
And thus allow various multithreading.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dvenc.c

index a3868c4..5d810e3 100644 (file)
@@ -758,7 +758,7 @@ AVCodec ff_dvvideo_encoder = {
     .init           = dvvideo_encode_init,
     .encode2        = dvvideo_encode_frame,
     .close          = dvvideo_encode_close,
-    .capabilities   = CODEC_CAP_SLICE_THREADS,
+    .capabilities   = CODEC_CAP_SLICE_THREADS | CODEC_CAP_FRAME_THREADS | CODEC_CAP_INTRA_ONLY,
     .pix_fmts       = (const enum AVPixelFormat[]) {
         AV_PIX_FMT_YUV411P, AV_PIX_FMT_YUV422P,
         AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE