diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-03-11 18:04:58 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-03-11 18:30:35 +0100 |
commit | fce68c93554803801c32c1b20509bfa8d496b02a (patch) | |
tree | 023e43e0d46d40ad633fba8a9595c0fa0fa9b0df /libavcodec | |
parent | 555000c7d5c1e13043a948ebc48d2939b0ba6536 (diff) | |
download | ffmpeg-fce68c93554803801c32c1b20509bfa8d496b02a.tar.gz |
pthread: unref the decoded but not returned frames on close.
Fixes memleaks when frame mt is used and the decoder is not flushed at
the end.
Diffstat (limited to 'libavcodec')
-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 280c08ed8b..70610909fb 100644 --- a/libavcodec/pthread.c +++ b/libavcodec/pthread.c @@ -749,6 +749,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++) { |