pthreads: reset got_frames on flush.
[ffmpeg.git] / libavcodec / pthread.c
index 35f8137..070dbff 100644 (file)
@@ -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;
     }
 }