Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2011-10-26 17:28:29 +0400
committerJanne Grunau <janne-libav@jannau.net>2011-10-26 18:55:54 +0400
commitd6174bfe5f7f9b4f9dbb580080e55e71705689f7 (patch)
tree486ef43f1054eb5690a88a8650ba49f6c0586235 /libavcodec/pthread.c
parentded3e9f054cb6114419cbcacd8d474aef221cde3 (diff)
threads: restore has_b_frames in frame_thread_free
Otherwise the delay expressed in has_b_frames increases with every avcodec_close/avcodec_open. Fixes fate-ea-dct with more than 1 thread.
Diffstat (limited to 'libavcodec/pthread.c')
-rw-r--r--libavcodec/pthread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c
index d5129dcc3e..7557e68c65 100644
--- a/libavcodec/pthread.c
+++ b/libavcodec/pthread.c
@@ -681,6 +681,7 @@ static void frame_thread_free(AVCodecContext *avctx, int thread_count)
av_freep(&fctx->threads);
pthread_mutex_destroy(&fctx->buffer_mutex);
av_freep(&avctx->thread_opaque);
+ avctx->has_b_frames -= avctx->thread_count - 1;
}
static int frame_thread_init(AVCodecContext *avctx)