forked from AuroraMiddleware/gtk
broadway: make sure color/delta run length do not overflow
Fixes bug 723045.
This commit is contained in:
parent
6e4567e73b
commit
ad39298f6d
@ -228,7 +228,9 @@ encode_pixel (struct encoder *encoder, guint32 color, guint32 prev_color)
|
|||||||
(encoder->delta != delta &&
|
(encoder->delta != delta &&
|
||||||
encoder->delta_run > encoder->color_run) ||
|
encoder->delta_run > encoder->color_run) ||
|
||||||
|
|
||||||
(encoder->delta != delta && encoder->color != color))
|
(encoder->delta != delta && encoder->color != color) ||
|
||||||
|
|
||||||
|
(encoder->delta_run == 0xFFFFF || encoder->color_run == 0xFFFFF))
|
||||||
{
|
{
|
||||||
encode_run (encoder);
|
encode_run (encoder);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user