diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-12-09 12:01:16 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-12-09 12:01:16 +0100 |
commit | f332137b44472905f173b0717054bd48e8cfc33f (patch) | |
tree | cbaf26c49d47da3dd907f454a99f8b01841c08ba /src | |
parent | 4e242114e8a89fbe272cae93a05ac09ba0e8cf4c (diff) | |
download | ufodecode-f332137b44472905f173b0717054bd48e8cfc33f.tar.gz ufodecode-f332137b44472905f173b0717054bd48e8cfc33f.tar.bz2 ufodecode-f332137b44472905f173b0717054bd48e8cfc33f.tar.xz ufodecode-f332137b44472905f173b0717054bd48e8cfc33f.zip |
Fill channel mask
Diffstat (limited to 'src')
-rw-r--r-- | src/ufodecode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ufodecode.c b/src/ufodecode.c index 65ffec0..d65ad32 100644 --- a/src/ufodecode.c +++ b/src/ufodecode.c @@ -123,6 +123,8 @@ static int ufo_decode_frame(ufo_decoder decoder, uint16_t *pixel_buffer, uint16_ if ((row > num_rows)||(channel > cpl)||(pixels>IPECAMERA_PIXELS_PER_CHANNEL)) return EILSEQ; + + if (cmask) cmask[row] |= (1<<channel); channel = channel_order[channel]; |