[FFmpeg-devel] lavc/libdavs2: enable multithread

Submitted by hwrenx on Dec. 14, 2018, 7:43 a.m.

Details

Message ID 1544773422-7242-1-git-send-email-hwrenx@qq.com
State New
Headers show

Commit Message

hwrenx Dec. 14, 2018, 7:43 a.m.
From: hwrenx <hwrenx@126.com>

Signed-off-by: hwrenx <hwrenx@126.com>
---
 libavcodec/libdavs2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Steven Liu Dec. 14, 2018, 2:22 p.m.
> On Dec 14, 2018, at 15:43, hwrenx <hwrenx@qq.com> wrote:
> 
> From: hwrenx <hwrenx@126.com>
> 
> Signed-off-by: hwrenx <hwrenx@126.com>
> ---
> libavcodec/libdavs2.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavcodec/libdavs2.c b/libavcodec/libdavs2.c
> index 37635bb..a714213 100644
> --- a/libavcodec/libdavs2.c
> +++ b/libavcodec/libdavs2.c
> @@ -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,//AV_CODEC_CAP_DR1 |

Maybe you can remove the unused code?
>     .pix_fmts       = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P,
>                                                      AV_PIX_FMT_NONE },
>     .wrapper_name   = "libdavs2",
> -- 
> 2.7.4
> 
> 
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Thanks
Steven

Patch hide | download patch | download mbox

diff --git a/libavcodec/libdavs2.c b/libavcodec/libdavs2.c
index 37635bb..a714213 100644
--- a/libavcodec/libdavs2.c
+++ b/libavcodec/libdavs2.c
@@ -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,//AV_CODEC_CAP_DR1 |
     .pix_fmts       = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P,
                                                      AV_PIX_FMT_NONE },
     .wrapper_name   = "libdavs2",