aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-09-27 19:18:40 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-09-27 19:30:19 +0200
commit40923e1567f1761abd98decfb5695ad596a2c6d3 (patch)
treeee50c7faea11d5e9edc71fff242d2509e6efaaa9
parent2f16b6a52581ead0d908498f2fc87b6cf82c5afd (diff)
downloadffmpeg-40923e1567f1761abd98decfb5695ad596a2c6d3.tar.gz
j2kenc: Update ff_j2k_init_component() arguments
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/j2kenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/j2kenc.c b/libavcodec/j2kenc.c
index 1103a2ef16..21e11e12e1 100644
--- a/libavcodec/j2kenc.c
+++ b/libavcodec/j2kenc.c
@@ -377,7 +377,7 @@ static int init_tiles(J2kEncoderContext *s)
for (j = 0; j < 2; j++)
comp->coord[i][j] = ff_j2k_ceildivpow2(comp->coord[i][j], s->chroma_shift[i]);
- if (ret = ff_j2k_init_component(comp, codsty, qntsty, s->cbps[compno]))
+ if (ret = ff_j2k_init_component(comp, codsty, qntsty, s->cbps[compno], compno?1<<s->chroma_shift[0]:1, compno?1<<s->chroma_shift[1]:1))
return ret;
}
}