Browse Source

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>
tags/n2.0
Michael Niedermayer 12 years ago
parent
commit
9054e72529
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/jpeg2000dec.c

+ 1
- 0
libavcodec/jpeg2000dec.c View File

@@ -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…
Cancel
Save