[FFmpeg-cvslog] j2kdec: move avctx init to decode_frame
Michael Niedermayer
git at videolan.org
Sun May 26 20:20:50 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun May 26 18:26:07 2013 +0200| [5d67dfd71cfe847680d4e037a4b009041126d789] | committer: Michael Niedermayer
j2kdec: move avctx init to decode_frame
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5d67dfd71cfe847680d4e037a4b009041126d789
---
libavcodec/j2kdec.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavcodec/j2kdec.c b/libavcodec/j2kdec.c
index 340edd1..f5d2cb4 100644
--- a/libavcodec/j2kdec.c
+++ b/libavcodec/j2kdec.c
@@ -1037,6 +1037,7 @@ static int decode_frame(AVCodecContext *avctx,
s->picture = picture;
+ s->avctx = avctx;
bytestream2_init(&s->g, avpkt->data, avpkt->size);
s->curtileno = -1;
@@ -1086,8 +1087,6 @@ static av_cold int j2kdec_init(AVCodecContext *avctx)
{
Jpeg2000DecoderContext *s = avctx->priv_data;
- s->avctx = avctx;
-
ff_jpeg2000_init_tier1_luts();
return 0;
More information about the ffmpeg-cvslog
mailing list