diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2013-06-19 14:43:29 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2013-06-19 14:43:29 +0200 |
commit | 40ceafe89f163a6c98de8504bea4233ad09c105d (patch) | |
tree | 1b6750e0a6c8770732cb50b0d6d2199c0cfc08bc /src | |
parent | adaf0ef2f4e046a8f0a16ca8f2f7ffd933306a39 (diff) | |
download | libufodecode-40ceafe89f163a6c98de8504bea4233ad09c105d.tar.gz libufodecode-40ceafe89f163a6c98de8504bea4233ad09c105d.tar.bz2 libufodecode-40ceafe89f163a6c98de8504bea4233ad09c105d.tar.xz libufodecode-40ceafe89f163a6c98de8504bea4233ad09c105d.zip |
Use correct field in release mode
Diffstat (limited to 'src')
-rw-r--r-- | src/ufodecode.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |