From 40ceafe89f163a6c98de8504bea4233ad09c105d Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Wed, 19 Jun 2013 14:43:29 +0200 Subject: Use correct field in release mode --- src/ufodecode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ufodecode.c b/src/ufodecode.c index 8a6b53a..a060cdc 100644 --- a/src/ufodecode.c +++ b/src/ufodecode.c @@ -598,7 +598,7 @@ size_t ufo_decoder_decode_frame(UfoDecoder *decoder, break; case 4: case 5: - meta->n_rows = rows_per_frame = raw[pos] & 0x7FF; + meta->n_rows = rows_per_frame = raw[pos + 5] & 0x7FF; meta->frame_number = raw[pos + 6] & 0x1FFFFFF; meta->time_stamp = raw[pos + 7] & 0xFFFFFF; meta->output_mode = (raw[pos + 7] >> 24) & 0x3; -- cgit v1.2.3