summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-05-26 15:08:52 +0200
committerSuren A. Chilingaryan <csa@suren.me>2015-05-26 15:08:52 +0200
commit0c7f81f9018bc7c23f92993e288ed546744fdf92 (patch)
tree257f0d33c8cac3e2340907a9533bdfa786bebabe
parent0241ab239cbaf67843edb629acc37423b264ee0a (diff)
downloadipecamera-0c7f81f9018bc7c23f92993e288ed546744fdf92.tar.gz
ipecamera-0c7f81f9018bc7c23f92993e288ed546744fdf92.tar.bz2
ipecamera-0c7f81f9018bc7c23f92993e288ed546744fdf92.tar.xz
ipecamera-0c7f81f9018bc7c23f92993e288ed546744fdf92.zip
Reduce frame magic to 4 dwords to handle recent hardware revisions
-rw-r--r--reader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/reader.c b/reader.c
index 2b1bc9f..15a6289 100644
--- a/reader.c
+++ b/reader.c
@@ -77,7 +77,7 @@ static inline int ipecamera_new_frame(ipecamera_t *ctx) {
return 0;
}
-static uint32_t frame_magic[5] = { 0x51111111, 0x52222222, 0x53333333, 0x54444444, 0x55555555 };
+static uint32_t frame_magic[4] = { 0x51111111, 0x52222222, 0x53333333, 0x54444444 };
static int ipecamera_data_callback(void *user, pcilib_dma_flags_t flags, size_t bufsize, void *buf) {
int res;