You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user