diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-08-12 17:37:04 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-08-12 17:37:04 +0200 |
commit | dc54794546c90f56a7399406c6a7baf9603ae07c (patch) | |
tree | 5dfd5e867a90808d0fb7a2bb25e96a79c0f11e4e /base.c | |
parent | eea58e536bcc4b4fadf09e3c2ce29368d22e5a76 (diff) | |
download | ipecamera-dc54794546c90f56a7399406c6a7baf9603ae07c.tar.gz ipecamera-dc54794546c90f56a7399406c6a7baf9603ae07c.tar.bz2 ipecamera-dc54794546c90f56a7399406c6a7baf9603ae07c.tar.xz ipecamera-dc54794546c90f56a7399406c6a7baf9603ae07c.zip |
Handle frame headers split between 2 packets
Diffstat (limited to 'base.c')
-rw-r--r-- | base.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |