aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-05-30 19:54:59 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-05-31 02:22:10 +0200
commit20a2d5ec11da1017d5c1f389cb1e6ff2f661a891 (patch)
treeadf25360c2d59b40e02e1ea0626589e5a280dd9f
parent7a2b6342205b77f4b716ca0c4743a2600f242d2a (diff)
downloadffmpeg-20a2d5ec11da1017d5c1f389cb1e6ff2f661a891.tar.gz
jpeg2000dec: fix ff_mqc_initdec() and data setup order
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/jpeg2000dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c
index c0bbc09fc5..a276a0922f 100644
--- a/libavcodec/jpeg2000dec.c
+++ b/libavcodec/jpeg2000dec.c
@@ -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) {