lavc/exr: use size_t instead of int for sizes.
authorNicolas George <nicolas.george@normalesup.org>
Wed, 27 Feb 2013 16:53:35 +0000 (17:53 +0100)
committerNicolas George <nicolas.george@normalesup.org>
Thu, 28 Feb 2013 18:13:58 +0000 (19:13 +0100)
Fix a segfault on 64-bits archs.

libavcodec/exr.c

index 7e9e68c..2850790 100644 (file)
@@ -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;
 
     if (s->compr != EXR_RAW) {
-        int thread_data_size, prev_size;
+        size_t thread_data_size, prev_size;
         EXRThreadData *m;
 
         prev_size = s->thread_data_size;