From f6a660be56b2c045f682ae4adddbed6ea6a5b2d9 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Tue, 14 Jul 2015 10:53:57 +0200 Subject: Fix version 6 decoding We have to skip the "tail" of every 640 columns. --- src/ufodecode.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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; -- cgit v1.2.3