[FFmpeg-devel] [PATCH 5/5] avcodec/bitpacked_enc: suppport for frame thread encode

lance.lmwang at gmail.com lance.lmwang at gmail.com
Wed Dec 1 15:39:14 EET 2021


From: Limin Wang <lance.lmwang at gmail.com>

Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
---
multi-thread is active, but I'm not sure why the performance isn't getting better.

 libavcodec/bitpacked_enc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/bitpacked_enc.c b/libavcodec/bitpacked_enc.c
index 3e0ba00..6f540f1 100644
--- a/libavcodec/bitpacked_enc.c
+++ b/libavcodec/bitpacked_enc.c
@@ -109,7 +109,7 @@ const AVCodec ff_bitpacked_encoder = {
     .type           = AVMEDIA_TYPE_VIDEO,
     .id             = AV_CODEC_ID_BITPACKED,
     .priv_data_size = sizeof(struct BitpackedContext),
-    .capabilities   = AV_CODEC_CAP_DR1,
+    .capabilities   = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS,
     .init           = encode_init,
     .encode2        = encode_frame,
     .pix_fmts       = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV422P10,
-- 
1.8.3.1



More information about the ffmpeg-devel mailing list