From dc54794546c90f56a7399406c6a7baf9603ae07c Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 12 Aug 2015 17:37:04 +0200 Subject: Handle frame headers split between 2 packets --- base.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'base.c') 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; -- cgit v1.2.3