Bug-fix with non-reference encoding
This commit is contained in:
parent
f3947a2a01
commit
e39bec8725
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ where
|
||||||
if run != 0 {
|
if run != 0 {
|
||||||
#[cfg(not(feature = "reference"))]
|
#[cfg(not(feature = "reference"))]
|
||||||
{
|
{
|
||||||
buf = buf.write_one(if run == 1 {
|
buf = buf.write_one(if run == 1 && i != 1 {
|
||||||
QOI_OP_INDEX | (hash_prev as u8)
|
QOI_OP_INDEX | (hash_prev as u8)
|
||||||
} else {
|
} else {
|
||||||
QOI_OP_RUN | (run - 1)
|
QOI_OP_RUN | (run - 1)
|
||||||
|
|
Loading…
Reference in a new issue