mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/jpeg2000dec: Zero code and quant style
This prevents future frames from using half initialized/inconsistent structures Fixes assertion failure Fixes Ticket2897 Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
1c71f185ad
commit
fcd19d6c8d
@ -1364,6 +1364,8 @@ static void jpeg2000_dec_cleanup(Jpeg2000DecoderContext *s)
|
||||
}
|
||||
}
|
||||
av_freep(&s->tile);
|
||||
memset(s->codsty, 0, sizeof(s->codsty));
|
||||
memset(s->qntsty, 0, sizeof(s->qntsty));
|
||||
s->numXtiles = s->numYtiles = 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user