Browse Source

j2kenc: Fix use of value before its initialized.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.9
Michael Niedermayer 14 years ago
parent
commit
2fbf691038
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/j2kdec.c

+ 1
- 1
libavcodec/j2kdec.c View File

@@ -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){


Loading…
Cancel
Save