]> granicus.if.org Git - libx264/commitdiff
Fix x264_picture_alloc with X264_CSP_I400 colorspace
authorAnton Mitrofanov <BugMaster@narod.ru>
Fri, 14 Jun 2019 16:57:36 +0000 (19:57 +0300)
committerAnton Mitrofanov <BugMaster@narod.ru>
Wed, 17 Jul 2019 17:15:34 +0000 (20:15 +0300)
common/base.c

index 44ec2f977dce428040b4156d5feee84782e48254..1c208293d0fa264324b63f1647decdb2cf9e18ef 100644 (file)
@@ -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 },       },