Skip to content

a bug about sserangecoding, in plugin.cc:ssercenc & ssercdec #45

@BeeBreeze

Description

@BeeBreeze

Test data: 0x0000
during encoding, the cum prob table is: 0, 2731
However, when decoding, the cum prob table is: 0, 4096 (because of scaled_cum_prob[a] = (1<<SSE_BITS))

Therefore, we should save the whole cum prob table and read it back when decoding, i.e.,
plugin.cc:891, useless now
plugin.cc:906, i < a + 1
plugin.cc:921, i < a + 1
plugin.cc:922, delete.

Hope this helps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions