Commit 1cd85109 authored by Paul B Mahol's avatar Paul B Mahol Committed by Michael Niedermayer

j2kdec: move ff_j2k_init_tier1_luts() to j2kdec_init()

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 6fa998c4
......@@ -1021,8 +1021,6 @@ static int decode_frame(AVCodecContext *avctx,
bytestream2_init(&s->g, avpkt->data, avpkt->size);
s->curtileno = -1;
ff_j2k_init_tier1_luts();
if (bytestream2_get_bytes_left(&s->g) < 2) {
ret = AVERROR(EINVAL);
goto err_out;
......@@ -1072,6 +1070,9 @@ static av_cold int j2kdec_init(AVCodecContext *avctx)
avcodec_get_frame_defaults((AVFrame*)&s->picture);
avctx->coded_frame = (AVFrame*)&s->picture;
ff_j2k_init_tier1_luts();
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment