[ncsixel_as_rgba] interpret sixel RLE of 0 as 1

pull/2598/head
nick black 2 years ago
parent 779386abe1
commit 706c887200
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -147,9 +147,8 @@ uint32_t* ncsixel_as_rgba(const char *sx, unsigned leny, unsigned lenx){
rle += *sx - '0';
++sx;
}while(isdigit(*sx));
if(2 >= rle){
logerror("bad rle %d", rle);
goto err;
if(0 == rle){
rle = 1;
}
--sx;
}else if(*sx == '$'){

Loading…
Cancel
Save