Skip to content
Snippets Groups Projects
Commit 2fbf6910 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

j2kenc: Fix use of value before its initialized.

parent 398b5327
No related branches found
No related tags found
No related merge requests found
......@@ -701,9 +701,9 @@ static int decode_cblk(J2kDecoderContext *s, J2kCodingStyle *codsty, J2kT1Contex
for (y = 0; y < height; y++)
memset(t1->data[y], 0, width*sizeof(int));
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){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment