[FFmpeg-cvslog] pthread: unref already decoded frames when flushing the decoder
Hendrik Leppkes
git at videolan.org
Wed Mar 20 11:57:03 CET 2013
ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Mon Mar 18 17:09:49 2013 +0100| [c71c80f53b6a63fd6360d9de5a262f9e7c85681f] | committer: Anton Khirnov
pthread: unref already decoded frames when flushing the decoder
Signed-off-by: Anton Khirnov <anton at khirnov.net>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c71c80f53b6a63fd6360d9de5a262f9e7c85681f
---
libavcodec/pthread.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c
index 7061090..9a92288 100644
--- 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);
}
More information about the ffmpeg-cvslog
mailing list