Fix a bug in VideoDecodeRGB for syncing between main and worker threads (#245)

Этот коммит содержится в:
Aryan Salmanpour
2024-02-14 12:30:03 -05:00
коммит произвёл GitHub
родитель d96afc62e8
Коммит ee3829388d
+1 -2
Просмотреть файл
@@ -203,10 +203,9 @@ void ColorSpaceConversionThread(std::atomic<bool>& continue_processing, bool con
viddec.SaveFrameToFile(output_file_path, frame, *surf_info);
}
//current_frame_index = 1 - current_frame_index;
cv[current_frame_index].notify_one();
current_frame_index = (current_frame_index + 1) % frame_buffers_size;
cv[current_frame_index].notify_one();
}
}