lavc/exr: use size_t instead of int for sizes.

Fix a segfault on 64-bits archs.
pull/19/head
Nicolas George 12 years ago
parent c4735eef03
commit bf63a474ca
  1. 2
      libavcodec/exr.c

@ -655,7 +655,7 @@ static int decode_frame(AVCodecContext *avctx,
scan_line_blocks = (s->ydelta + s->scan_lines_per_block - 1) / s->scan_lines_per_block; scan_line_blocks = (s->ydelta + s->scan_lines_per_block - 1) / s->scan_lines_per_block;
if (s->compr != EXR_RAW) { if (s->compr != EXR_RAW) {
int thread_data_size, prev_size; size_t thread_data_size, prev_size;
EXRThreadData *m; EXRThreadData *m;
prev_size = s->thread_data_size; prev_size = s->thread_data_size;

Loading…
Cancel
Save