From 296494a4011f58f32adc54304a2654627558c59a Mon Sep 17 00:00:00 2001 From: Anton Mitrofanov Date: Sun, 5 Apr 2020 21:55:15 +0300 Subject: [PATCH] Fix error "invalid size of malloc" for 10-bit encodes at i686 --- common/frame.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/frame.c b/common/frame.c index 046016c6..776f7274 100644 --- a/common/frame.c +++ b/common/frame.c @@ -77,7 +77,7 @@ static x264_frame_t *frame_new( x264_t *h, int b_fdec ) #endif /* ensure frame alignment after PADH is added */ - int padh_align = X264_MAX( align - PADH * sizeof(pixel), 0 ) / sizeof(pixel); + int padh_align = X264_MAX( align - PADH * (int)sizeof(pixel), 0 ) / sizeof(pixel); CHECKED_MALLOCZERO( frame, sizeof(x264_frame_t) ); PREALLOC_INIT -- 2.40.0