summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2015-07-14 10:53:57 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2015-07-14 10:53:57 +0200
commitf6a660be56b2c045f682ae4adddbed6ea6a5b2d9 (patch)
treeb59d4723c0f1e6bf02e9101bfc6f0fa4113b30c8 /src
parent6353a9019c2999541b812a3c1ddba5b7b410a837 (diff)
downloadlibufodecode-f6a660be56b2c045f682ae4adddbed6ea6a5b2d9.tar.gz
libufodecode-f6a660be56b2c045f682ae4adddbed6ea6a5b2d9.tar.bz2
libufodecode-f6a660be56b2c045f682ae4adddbed6ea6a5b2d9.tar.xz
libufodecode-f6a660be56b2c045f682ae4adddbed6ea6a5b2d9.zip
Fix version 6 decoding
We have to skip the "tail" of every 640 columns.
Diffstat (limited to 'src')
-rw-r--r--src/ufodecode.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ufodecode.c b/src/ufodecode.c
index cfd9846..b03eb16 100644
--- a/src/ufodecode.c
+++ b/src/ufodecode.c
@@ -303,6 +303,10 @@ ufo_decode_frame_channels_v6 (UfoDecoder *decoder, uint16_t *pixel_buffer, uint3
#endif
base += 6;
+
+ if ((raw[base] & 0xFF000000) == 0xC0000000) {
+ base += 8;
+ }
}
return base;