mirror of
https://github.com/amitbet/vnc2video.git
synced 2025-09-19 17:14:15 +00:00
Merge 7d38f68540
into 9d50b9dab1
This commit is contained in:
@@ -11,6 +11,7 @@ import (
|
|||||||
"image/draw"
|
"image/draw"
|
||||||
"image/jpeg"
|
"image/jpeg"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"github.com/amitbet/vnc2video/logger"
|
"github.com/amitbet/vnc2video/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -532,7 +533,7 @@ func (enc *TightEncoding) readTightPalette(connReader Conn, bytesPixel int) (col
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
paletteSize := colorCount + 1 // add one more
|
paletteSize := int(colorCount) + 1 // add one more
|
||||||
//logger.Tracef("----PALETTE_FILTER: paletteSize=%d bytesPixel=%d\n", paletteSize, bytesPixel)
|
//logger.Tracef("----PALETTE_FILTER: paletteSize=%d bytesPixel=%d\n", paletteSize, bytesPixel)
|
||||||
//complete palette
|
//complete palette
|
||||||
paletteColorBytes, err := ReadBytes(int(paletteSize)*bytesPixel, connReader)
|
paletteColorBytes, err := ReadBytes(int(paletteSize)*bytesPixel, connReader)
|
||||||
|
Reference in New Issue
Block a user