Commit 296494a4 authored by Anton Mitrofanov's avatar Anton Mitrofanov

Fix error "invalid size of malloc" for 10-bit encodes at i686

parent 9a1bd573
Pipeline #164903 failed with stages
in 0 seconds
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment