The library fails to decode the animations it creates. The call to flif_decoder_decode_memory fails, and the
culprit seems to be this check on unique_frames that happens here:
flif-dec.cpp, function flif_decode<>, around line 1230
if (desc == "Frame_Shape") {
if (images.size()<2)
return false;
int unique_frames=images.size()-1; // not considering first frame
for (Image& i : images)
if (i.seen_before >= 0)
unique_frames--;
if (unique_frames < 1) {
return false;
}
trans->configure(unique_frames*images[0].rows());
trans->configure(images[0].cols());
}
For some reason the library requires the number of unique_frames to be >= 1, which, for some reason,
it is not on my 3 frame animation.
I have attached a full working reproduction of the bug.
Here is is the code I used to generate the animation
The library fails to decode the animations it creates. The call to flif_decoder_decode_memory fails, and the culprit seems to be this check on
unique_frames
that happens here:flif-dec.cpp, function flif_decode<>, around line 1230
For some reason the library requires the number of unique_frames to be >= 1, which, for some reason, it is not on my 3 frame animation.
I have attached a full working reproduction of the bug.
Here is is the code I used to generate the animation
And the code to decode
}
AnimationDecodeError.zip