Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanne Grunau <janne-vlc@jannau.net>2018-11-22 00:25:49 +0300
committerJanne Grunau <janne-vlc@jannau.net>2018-11-22 00:27:25 +0300
commit9abc87473179dcfafb455cf1890a90e5112625d6 (patch)
treec39adeff2fe6ce75a338433939b15ac1aa262c06
parent12e0c9055b2b05ffe12a69d77fa3e1c28f2f7e44 (diff)
film_grain: fix build when bit depths are disabled
-rw-r--r--src/lib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib.c b/src/lib.c
index 183d9fd..15944a1 100644
--- a/src/lib.c
+++ b/src/lib.c
@@ -192,12 +192,16 @@ static int output_image(Dav1dContext *const c, Dav1dPicture *const out,
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");
}