Skip to content

Commit

Permalink
v9.6.1a
Browse files Browse the repository at this point in the history
  • Loading branch information
s60sc authored Mar 4, 2024
1 parent 9612a7a commit fceecd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Changes in version 9.6:

Changes in version 9.6.1:
* Add brownout warning
* Applied fix in issue [#381](https://github.com/s60sc/ESP32-CAM_MJPEG2SD/issues/381)

## Purpose

Expand Down
4 changes: 3 additions & 1 deletion avi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ void prepAviIndex(bool isTL) {
memcpy(idxBuf[isTL], idx1Buf, 4); // index header
idxPtr[isTL] = CHUNK_HDR; // leave 4 bytes for index size
moviSize[isTL] = indexLen[isTL] = 0;
idxOffset[isTL] = 4; // 4 byte offset
}

void buildAviHdr(uint8_t FPS, uint8_t frameType, uint16_t frameCnt, bool isTL) {
Expand Down Expand Up @@ -145,7 +146,8 @@ void buildAviHdr(uint8_t FPS, uint8_t frameType, uint16_t frameCnt, bool isTL) {
#endif

// reset state for next recording
moviSize[isTL] = idxOffset[isTL] = idxPtr[isTL] = 0;
moviSize[isTL] = idxPtr[isTL] = 0;
idxOffset[isTL] = 4; // 4 byte offset
}

void buildAviIdx(size_t dataSize, bool isVid, bool isTL) {
Expand Down

0 comments on commit fceecd3

Please sign in to comment.