Commit 20a2d5ec authored by Michael Niedermayer's avatar Michael Niedermayer

jpeg2000dec: fix ff_mqc_initdec() and data setup order

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 7a2b6342
......@@ -884,9 +884,9 @@ static int decode_cblk(Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *codsty,
for (y = 0; y < height + 2; y++)
memset(t1->flags[y], 0, (width + 2) * sizeof(width));
ff_mqc_initdec(&t1->mqc, cblk->data);
cblk->data[cblk->length] = 0xff;
cblk->data[cblk->length + 1] = 0xff;
ff_mqc_initdec(&t1->mqc, cblk->data);
while (passno--) {
switch (pass_t) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment