# HG changeset patch # User reimar # Date 1337630401 0 # Node ID 04cd132753bc960c5497cd6d1099b31cb2331073 # Parent e28caa1840a0e5cf3302a36a958b21434615eb98 vf_ass: fix running out of images and crashing. This would happen when running direct rendering with MP_IMGTYPE_NUMBERED. diff -r e28caa1840a0 -r 04cd132753bc libmpcodecs/vf_ass.c --- a/libmpcodecs/vf_ass.c Mon May 21 19:59:59 2012 +0000 +++ b/libmpcodecs/vf_ass.c Mon May 21 20:00:01 2012 +0000 @@ -168,6 +168,8 @@ mp_msg(MSGT_ASS, MSGL_WARN, MSGTR_MPCODECS_FunWhydowegetNULL); return 0; } + // allow reusing it after this processing + vf->dmpi->usage_count--; mpi->priv = NULL; // we've used DR, so we're ready... if (ass_top_margin)