aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-04 22:02:03 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-04 22:02:08 +0200
commit11b3462aa347f65f296ba31140eaf32590c575b5 (patch)
treeeaf7021b4a18dea42d4db9dab5726ee06ba62991
parent5f390ee944f5b66ae62744f51129eb93359b2545 (diff)
parentcf7bb6ceb1da7682aa54989f83d81c67a5e6790d (diff)
downloadffmpeg-11b3462aa347f65f296ba31140eaf32590c575b5.tar.gz
Merge commit 'cf7bb6ceb1da7682aa54989f83d81c67a5e6790d' into release/1.1
* commit 'cf7bb6ceb1da7682aa54989f83d81c67a5e6790d': Revert "pthread: flush all threads on flush, not just the first one" Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/pthread.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c
index 4a79e538af..20398302f7 100644
--- a/libavcodec/pthread.c
+++ b/libavcodec/pthread.c
@@ -908,6 +908,8 @@ void ff_thread_flush(AVCodecContext *avctx)
if (fctx->prev_thread) {
if (fctx->prev_thread != &fctx->threads[0])
update_context_from_thread(fctx->threads[0].avctx, fctx->prev_thread->avctx, 0);
+ if (avctx->codec->flush)
+ avctx->codec->flush(fctx->threads[0].avctx);
}
fctx->next_decoding = fctx->next_finished = 0;
@@ -919,9 +921,6 @@ void ff_thread_flush(AVCodecContext *avctx)
p->got_frame = 0;
release_delayed_buffers(p);
-
- if (avctx->codec->flush)
- avctx->codec->flush(p->avctx);
}
}