[FFmpeg-devel] [PATCH] lavc/exc: use size_t instead of int for sizes.

Nicolas George nicolas.george at normalesup.org
Wed Feb 27 17:55:18 CET 2013


Fix a segfault on 64-bits archs.

Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 libavcodec/exr.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index 7e9e68c..2850790 100644
--- a/libavcodec/exr.c
+++ b/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;
 
     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;
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list