Fix minor bug
This commit is contained in:
parent
0d7c52dc1f
commit
0898df6535
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue