projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e70d66
)
pthread: unref already decoded frames when flushing the decoder
author
Hendrik Leppkes
<h.leppkes@gmail.com>
Mon, 18 Mar 2013 16:09:49 +0000
(17:09 +0100)
committer
Anton Khirnov
<anton@khirnov.net>
Tue, 19 Mar 2013 10:19:08 +0000
(11:19 +0100)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/pthread.c
patch
|
blob
|
history
diff --git
a/libavcodec/pthread.c
b/libavcodec/pthread.c
index
7061090
..
9a92288
100644
(file)
--- a/
libavcodec/pthread.c
+++ b/
libavcodec/pthread.c
@@
-890,6
+890,7
@@
void ff_thread_flush(AVCodecContext *avctx)
PerThreadContext *p = &fctx->threads[i];
// Make sure decode flush calls with size=0 won't return old frames
p->got_frame = 0;
+ av_frame_unref(&p->frame);
release_delayed_buffers(p);
}