shithub: dav1d

Download patch

ref: 9abc87473179dcfafb455cf1890a90e5112625d6
parent: 12e0c9055b2b05ffe12a69d77fa3e1c28f2f7e44
author: Janne Grunau <janne-vlc@jannau.net>
date: Wed Nov 21 17:25:49 EST 2018

film_grain: fix build when bit depths are disabled

--- a/src/lib.c
+++ b/src/lib.c
@@ -192,12 +192,16 @@
         return res;
 
     switch (out->p.bpc) {
+#if CONFIG_8BPC
     case 8:
         dav1d_apply_grain_8bpc(out, in);
         break;
+#endif
+#if CONFIG_10BPC
     case 10:
         dav1d_apply_grain_10bpc(out, in);
         break;
+#endif
     default:
         assert(!"apply_grain: missing bit depth");
     }