avcodec/rawenc: suppport frame thread for rawvideo

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
pull/378/head
Limin Wang 3 years ago
parent 0e1f5f8871
commit 8ecd7cdb46
  1. 2
      libavcodec/rawenc.c

@ -85,7 +85,7 @@ const AVCodec ff_rawvideo_encoder = {
.long_name = NULL_IF_CONFIG_SMALL("raw video"),
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_RAWVIDEO,
.capabilities = AV_CODEC_CAP_DR1,
.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS,
.init = raw_encode_init,
.encode2 = raw_encode,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,

Loading…
Cancel
Save