summaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-09-27 21:27:17 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-09-27 21:32:39 +0200
commit2fbf69103847d9449de466fa217f8bd4221aa3e9 (patch)
treee1bcf39f34d8c92b5339da43a1263bb7361d388c /libavcodec
parent398b5327a397090e2ec98d8030ed81574e8d607a (diff)
downloadffmpeg-streaming-2fbf69103847d9449de466fa217f8bd4221aa3e9.zip
ffmpeg-streaming-2fbf69103847d9449de466fa217f8bd4221aa3e9.tar.gz
j2kenc: Fix use of value before its initialized.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/j2kdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/j2kdec.c b/libavcodec/j2kdec.c
index 73af6a7..998752b 100644
--- a/libavcodec/j2kdec.c
+++ b/libavcodec/j2kdec.c
@@ -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){
OpenPOWER on IntegriCloud