pthreads: export the delay that was previously exported by mangling has_b_frames through

AVCodecContext.delay which was previously unused for decoders and fits better.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2011-11-09 18:32:38 +01:00
parent afc0a24d7d
commit 3cc1af9dd9
2 changed files with 2 additions and 1 deletions

View file

@ -363,6 +363,7 @@ static int update_context_from_thread(AVCodecContext *dst, AVCodecContext *src,
}
if (for_user) {
dst->delay = src->thread_count - 1;
dst->coded_frame = src->coded_frame;
} else {
if (dst->codec->update_thread_context)