[FFmpeg-cvslog] lavc/exr: use size_t instead of int for sizes.
Nicolas George
git at videolan.org
Thu Feb 28 19:16:52 CET 2013
ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Wed Feb 27 17:53:35 2013 +0100| [bf63a474cabb6e4114bd3f87272276017e07f775] | committer: Nicolas George
lavc/exr: use size_t instead of int for sizes.
Fix a segfault on 64-bits archs.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bf63a474cabb6e4114bd3f87272276017e07f775
---
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;
More information about the ffmpeg-cvslog
mailing list