Refactor recorder logic

Process the initial config packet (necessary to write the header)
separately.
This commit is contained in:
Romain Vimont
2023-02-18 12:07:30 +01:00
parent ddd9c8b4a8
commit f0660df102
2 changed files with 69 additions and 59 deletions

View File

@@ -26,7 +26,6 @@ struct sc_recorder {
enum sc_record_format format;
AVFormatContext *ctx;
struct sc_size declared_frame_size;
bool header_written;
sc_thread thread;
sc_mutex mutex;