figure out new segment on the fly right in FrameDump::Start()

This commit is contained in:
feos 2019-11-02 17:39:54 +03:00
parent a7d4be79ae
commit 15e6e7ddd2
1 changed files with 1 additions and 2 deletions

View File

@ -84,9 +84,8 @@ bool FrameDump::Start(int w, int h)
s_width = w;
s_height = h;
s_last_frame_is_valid = false;
s_last_pts = 0;
s_last_frame_is_valid = s_file_index != 0;
InitAVCodec();
bool success = CreateVideoFile();