shithub: dav1d

Download patch

ref: 47be2ce4d1f4d2b50473a5ca4c11d0f8ad797eb5
parent: 18b69609a2ec2c6e15db6867c83bc3b7cde6137e
author: Steve Lhomme <slhomme@videolan.org>
date: Thu Sep 27 09:29:39 EDT 2018

cdf: init empty brackets to 0

MSVC doesn't allow empty initializers

--- a/src/cdf.c
+++ b/src/cdf.c
@@ -387,7 +387,7 @@
         { { AOM_CDF2(28015) }, { AOM_CDF2(21546) }, { AOM_CDF2(14400) }, },
         { { AOM_CDF2(28165) }, { AOM_CDF2(22401) }, { AOM_CDF2(16088) }, },
     }, .txtp_inter = {
-        {}, {
+        { 0 }, {
             { AOM_CDF16(4458, 5560, 7695, 9709, 13330, 14789, 17537, 20266,
                         21504, 22848, 23934, 25474, 27727, 28915, 30631) },
             { AOM_CDF16(1645, 2573, 4778, 5711, 7807, 8622, 10522, 15357,
@@ -412,7 +412,7 @@
             { AOM_CDF2(748) },
         },
     }, .txtp_intra = {
-        {}, {
+        { 0 }, {
             {
                 { AOM_CDF7(1535, 8035, 9461, 12751, 23467, 27825) },
                 { AOM_CDF7(564, 3335, 9709, 10870, 18143, 28094) },