[FFmpeg-cvslog] j2kenc: Update ff_j2k_init_component() arguments
Michael Niedermayer
git at videolan.org
Tue Sep 27 19:32:15 CEST 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Sep 27 19:18:40 2011 +0200| [40923e1567f1761abd98decfb5695ad596a2c6d3] | committer: Michael Niedermayer
j2kenc: Update ff_j2k_init_component() arguments
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=40923e1567f1761abd98decfb5695ad596a2c6d3
---
libavcodec/j2kenc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/j2kenc.c b/libavcodec/j2kenc.c
index 1103a2e..21e11e1 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;
}
}
More information about the ffmpeg-cvslog
mailing list