From 6d4947083a712c7dc2efca569c8149ffc8667eda Mon Sep 17 00:00:00 2001 From: Anton Mitrofanov <BugMaster@narod.ru> Date: Fri, 14 Jun 2019 19:57:36 +0300 Subject: [PATCH] Fix x264_picture_alloc with X264_CSP_I400 colorspace --- common/base.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/base.c b/common/base.c index 44ec2f97..1c208293 100644 --- a/common/base.c +++ b/common/base.c @@ -223,6 +223,7 @@ static int picture_alloc( x264_picture_t *pic, int i_csp, int i_width, int i_hei static const x264_csp_tab_t csp_tab[] = { + [X264_CSP_I400] = { 1, { 256*1 }, { 256*1 } }, [X264_CSP_I420] = { 3, { 256*1, 256/2, 256/2 }, { 256*1, 256/2, 256/2 } }, [X264_CSP_YV12] = { 3, { 256*1, 256/2, 256/2 }, { 256*1, 256/2, 256/2 } }, [X264_CSP_NV12] = { 2, { 256*1, 256*1 }, { 256*1, 256/2 }, }, -- 2.40.0