diff options
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 b32d70744a..9dbaec3dc8 100644 --- a/libavcodec/pthread.c +++ b/libavcodec/pthread.c @@ -928,6 +928,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); } |