Commit 084510d1 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'c71c80f5'

* commit 'c71c80f5':
  pthread: unref already decoded frames when flushing the decoder
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 54b0bef3 c71c80f5
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment