提交 2ee01fbd 编写于 作者: R Ronald S. Bultje 提交者: Anton Khirnov

pthread: free progress if buffer allocation failed.

Else we run out of progress variables after a few failed buffer
allocations.
Signed-off-by: NAnton Khirnov <anton@khirnov.net>
上级 bc1ef855
......@@ -951,6 +951,10 @@ int ff_thread_get_buffer(AVCodecContext *avctx, AVFrame *f)
ff_thread_finish_setup(avctx);
}
if (err) {
free_progress(f);
f->thread_opaque = NULL;
}
pthread_mutex_unlock(&p->parent->buffer_mutex);
return err;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册