mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
jpeg2000: make sure s->numXtiles / s->numYtiles are reset when tile is deallocated
This keeps the structure fields more consistent after cleanup Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
1fb52bf920
commit
9054e72529
@ -1155,6 +1155,7 @@ static void jpeg2000_dec_cleanup(Jpeg2000DecoderContext *s)
|
||||
av_freep(&s->tile[tileno].comp);
|
||||
}
|
||||
av_freep(&s->tile);
|
||||
s->numXtiles = s->numYtiles = 0;
|
||||
}
|
||||
|
||||
static int jpeg2000_read_main_headers(Jpeg2000DecoderContext *s)
|
||||
|
Loading…
Reference in New Issue
Block a user