pthread: Immediately release all frames in ff_thread_flush()
authorAlexander Strange <astrange@ithinksw.com>
Sat, 24 Mar 2012 22:25:15 +0000 (18:25 -0400)
committerRonald S. Bultje <rsbultje@gmail.com>
Sat, 24 Mar 2012 22:29:51 +0000 (15:29 -0700)
commit147ee4cf065a20bbba10292b496a037e6573cd6e
treea8c05dbca176e23e9939bfe3c41a46f1bd70a161
parent6ef4063957aa5025c8d2cd757b6a537e4b6874df
pthread: Immediately release all frames in ff_thread_flush()

Before this, they were only added to the delayed release queue and not
freed until later. This could lead to unnecessary memory use or buffer
exhaustion.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
libavcodec/pthread.c