On 25/11/2016 13:36, Mark Thompson wrote: > --- > IRC-LGTMed-by: Anton. I'll push it later if there are no other comments. > > libavutil/hwcontext_vaapi.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c > index 1988729..b2e212c 100644 > --- a/libavutil/hwcontext_vaapi.c > +++ b/libavutil/hwcontext_vaapi.c > @@ -388,6 +388,10 @@ static AVBufferRef *vaapi_pool_alloc(void *opaque, int > size) > VAStatus vas; > AVBufferRef *ref; > > + if (hwfc->initial_pool_size > 0 && > + avfc->nb_surfaces >= hwfc->initial_pool_size) > + return NULL; > + > vas = vaCreateSurfaces(hwctx->display, ctx->rt_format, > hwfc->width, hwfc->height, > &surface_id, 1, >
Ok. _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
