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:
authorMichael Niedermayer <michaelni@gmx.at>2012-01-23 06:39:59 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-01-23 22:47:49 +0400
commit575d494de561049f36f9c5492e05c7d83dd78e75 (patch)
treeb34e1116f79a4965bfca7dad971fec580e3c34df /libavcodec/pthread.c
parentc7579ad8e84c5aa28a0540604e8983cbde7ac37b (diff)
pthreads: reset got_frames on flush.
This fixes memory corruption when seeking in broken streams. a random mpeg4 in nut file was used to debug. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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 35f8137f03..070dbffc1f 100644
--- a/libavcodec/pthread.c
+++ b/libavcodec/pthread.c
@@ -731,6 +731,7 @@ static void park_frame_worker_threads(FrameThreadContext *fctx, int thread_count
pthread_cond_wait(&p->output_cond, &p->progress_mutex);
pthread_mutex_unlock(&p->progress_mutex);
}
+ p->got_frame = 0;
}
}