Fix minor bug
This commit is contained in:
parent
0d7c52dc1f
commit
0898df6535
|
@ -191,13 +191,14 @@ int X264MP4Writer::Close() {
|
|||
|
||||
int X264MP4Writer::Reset(const char* new_path) {
|
||||
|
||||
VideoWriter::Reset(new_path);
|
||||
|
||||
/* Close the encoder and file */
|
||||
if(bOpen)
|
||||
Close();
|
||||
|
||||
/* Reset variables */
|
||||
/* Reset common variables */
|
||||
VideoWriter::Reset(new_path);
|
||||
|
||||
/* Reset local variables */
|
||||
bFirstFrame = true;
|
||||
bGotH264AVCInfo = false;
|
||||
prevnals.clear();
|
||||
|
|
Loading…
Reference in New Issue