Break out early if no more buffer. Saves a couple cycles

pull/3195/head
Isaac Connor 2021-03-16 12:08:45 -04:00
parent 76267bc57f
commit 9d239219de
1 changed files with 1 additions and 0 deletions

View File

@ -83,6 +83,7 @@ std::list< std::pair<unsigned char*, size_t> > H264_ZoneMinderFifoSource::splitF
}
#endif
frameList.push_back(std::pair<unsigned char*,size_t>(buffer, size));
if (!bufSize) break;
buffer = this->extractFrame(&buffer[size], bufSize, size);
} // end while buffer