Quoting Luca Barbato (2016-11-29 16:41:05)
> Otherwise is not possible to decode, deinterlace and encode at the same
> time.
> ---
> 
> Even if I make it user-tunable I'd rather have a default pool large enough.
> 
> Alternatively we could use separate pools for encoding, decoding and 
> filtering.
> 
>  avconv_qsv.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/avconv_qsv.c b/avconv_qsv.c
> index 723c6e0..d95fa24 100644
> --- a/avconv_qsv.c
> +++ b/avconv_qsv.c
> @@ -80,7 +80,7 @@ int qsv_init(AVCodecContext *s)
>      frames_ctx->height            = FFALIGN(s->coded_height, 32);
>      frames_ctx->format            = AV_PIX_FMT_QSV;
>      frames_ctx->sw_format         = s->sw_pix_fmt;
> -    frames_ctx->initial_pool_size = 32;
> +    frames_ctx->initial_pool_size = 64;
>      frames_hwctx->frame_type      = MFX_MEMTYPE_VIDEO_MEMORY_DECODER_TARGET;
> 
>      ret = av_hwframe_ctx_init(ist->hw_frames_ctx);
> --
> 2.9.2

I think at this point we should just add an avconv option for setting
the pool size (that would apply to all the hwaccels) rather than
hardcoding random numbers everywhere.

-- 
Anton Khirnov
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to