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

Paul B Mahol onemda at gmail.com
Thu Feb 28 12:14:05 CET 2013


On 2/27/13, Nicolas George <nicolas.george at normalesup.org> wrote:
> 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(-)


Why is subject mistyped? I did not noticed patch at all first time.

OK with typo fixed.

>
> 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
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>


More information about the ffmpeg-devel mailing list