diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-03-13 16:39:01 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-03-13 16:39:44 +0400 |
commit | 8ded1718bdf5ad0309a33a57e10b06a51139138d (patch) | |
tree | f28f6c74273806b14c3c81a757913a57be7bdb69 /libavcodec/pthread.c | |
parent | 8bcebf9e4a480de4a904b5843e9ecb74cf44bfdf (diff) | |
parent | fce68c93554803801c32c1b20509bfa8d496b02a (diff) |
Merge commit 'fce68c93554803801c32c1b20509bfa8d496b02a'
* commit 'fce68c93554803801c32c1b20509bfa8d496b02a':
pthread: unref the decoded but not returned frames on close.
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/pthread.c')
-rw-r--r-- | libavcodec/pthread.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c index 6cd0c72333..d4997e9c47 100644 --- a/libavcodec/pthread.c +++ b/libavcodec/pthread.c @@ -779,6 +779,7 @@ static void frame_thread_free(AVCodecContext *avctx, int thread_count) avctx->codec = NULL; release_delayed_buffers(p); + av_frame_unref(&p->frame); } for (i = 0; i < thread_count; i++) { |