You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Fixed a big regression where the "omp" tag was not correct. Also, restructured the encoder to be much faster, and changed "omp master" to "omp single".
This commit is contained in:
@@ -319,7 +319,7 @@ Frame* FFmpegReader::ReadStream(int requested_frame)
|
||||
//omp_set_num_threads(1);
|
||||
#pragma omp parallel
|
||||
{
|
||||
#pragma omp master
|
||||
#pragma omp single
|
||||
{
|
||||
// Loop through the stream until the correct frame is found
|
||||
while (true)
|
||||
@@ -407,11 +407,7 @@ Frame* FFmpegReader::ReadStream(int requested_frame)
|
||||
|
||||
} // end while
|
||||
|
||||
} // end omp master
|
||||
|
||||
// Be sure all threads are finished
|
||||
#pragma omp barrier
|
||||
|
||||
} // end omp single
|
||||
} // end omp parallel
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user