Merge pull request #8490 from vadosnaprimer/dumping
2 minor dumping fixes
This commit is contained in:
commit
ac77df9e90
|
@ -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();
|
||||
|
@ -393,6 +392,7 @@ void FrameDump::Stop()
|
|||
av_write_trailer(s_format_context);
|
||||
CloseVideoFile();
|
||||
s_file_index = 0;
|
||||
s_start_dumping = false;
|
||||
NOTICE_LOG(VIDEO, "Stopping frame dump");
|
||||
OSD::AddMessage("Stopped dumping frames");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue