From b57423cc5495dbaad938624931bc78453beb2496 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Fri, 30 Sep 2011 21:50:27 +0200 Subject: [PATCH] Fix the depth decoding for the Mares Nemo Wide. The depth is reduced to a 11 bit value. The meaning of the now unused bit is still unknown. --- src/mares_nemo_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mares_nemo_parser.c b/src/mares_nemo_parser.c index 4ffcf13..80e5bb4 100644 --- a/src/mares_nemo_parser.c +++ b/src/mares_nemo_parser.c @@ -298,7 +298,7 @@ mares_nemo_parser_samples_foreach (parser_t *abstract, sample_callback_t callbac unsigned int idx = 2 + parser->sample_size * i; unsigned int value = array_uint16_le (data + idx); - unsigned int depth = value & 0x0FFF; + unsigned int depth = value & 0x07FF; unsigned int ascent = (value & 0xC000) >> 14; unsigned int violation = (value & 0x2000) >> 13; unsigned int deco = (value & 0x1000) >> 12;