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/ufodecode.c | |
parent | 4e242114e8a89fbe272cae93a05ac09ba0e8cf4c (diff) | |
download | libufodecode-f332137b44472905f173b0717054bd48e8cfc33f.tar.gz libufodecode-f332137b44472905f173b0717054bd48e8cfc33f.tar.bz2 libufodecode-f332137b44472905f173b0717054bd48e8cfc33f.tar.xz libufodecode-f332137b44472905f173b0717054bd48e8cfc33f.zip |
Fill channel mask
Diffstat (limited to 'src/ufodecode.c')
-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]; |