Fix minor bug

This commit is contained in:
Kfir Itzhak 2014-06-06 09:01:03 +03:00
parent 0d7c52dc1f
commit 0898df6535
1 changed files with 4 additions and 3 deletions

View File

@ -190,14 +190,15 @@ int X264MP4Writer::Close() {
} }
int X264MP4Writer::Reset(const char* new_path) { int X264MP4Writer::Reset(const char* new_path) {
VideoWriter::Reset(new_path);
/* Close the encoder and file */ /* Close the encoder and file */
if(bOpen) if(bOpen)
Close(); Close();
/* Reset variables */ /* Reset common variables */
VideoWriter::Reset(new_path);
/* Reset local variables */
bFirstFrame = true; bFirstFrame = true;
bGotH264AVCInfo = false; bGotH264AVCInfo = false;
prevnals.clear(); prevnals.clear();