summaryrefslogtreecommitdiffstats
path: root/base.c
diff options
context:
space:
mode:
Diffstat (limited to 'base.c')
-rw-r--r--base.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/base.c b/base.c
index 1355486..1adc185 100644
--- a/base.c
+++ b/base.c
@@ -351,6 +351,10 @@ int ipecamera_start(pcilib_context_t *vctx, pcilib_event_t event_mask, pcilib_ev
ctx->parse_data = (flags&PCILIB_EVENT_FLAG_RAW_DATA_ONLY)?0:1;
ctx->cur_size = 0;
+#ifdef IPECAMERA_BUG_MULTIFRAME_HEADERS
+ ctx->saved_header_size = 0;
+#endif /* IPECAMERA_BUG_MULTIFRAME_HEADERS */
+
switch (ctx->firmware) {
case IPECAMERA_FIRMWARE_UFO5:
ctx->dim.width = CMOSIS_WIDTH;