[FFmpeg-cvslog] j2kenc: Fix use of value before its initialized.
Michael Niedermayer
git at videolan.org
Tue Sep 27 21:34:39 CEST 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Sep 27 21:27:17 2011 +0200| [2fbf69103847d9449de466fa217f8bd4221aa3e9] | committer: Michael Niedermayer
j2kenc: Fix use of value before its initialized.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2fbf69103847d9449de466fa217f8bd4221aa3e9
---
libavcodec/j2kdec.c | 2 +-
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){
More information about the ffmpeg-cvslog
mailing list