Commit 9abc8747 authored by Janne Grunau's avatar Janne Grunau

film_grain: fix build when bit depths are disabled

parent 12e0c905
...@@ -192,12 +192,16 @@ static int output_image(Dav1dContext *const c, Dav1dPicture *const out, ...@@ -192,12 +192,16 @@ static int output_image(Dav1dContext *const c, Dav1dPicture *const out,
return res; return res;
switch (out->p.bpc) { switch (out->p.bpc) {
#if CONFIG_8BPC
case 8: case 8:
dav1d_apply_grain_8bpc(out, in); dav1d_apply_grain_8bpc(out, in);
break; break;
#endif
#if CONFIG_10BPC
case 10: case 10:
dav1d_apply_grain_10bpc(out, in); dav1d_apply_grain_10bpc(out, in);
break; break;
#endif
default: default:
assert(!"apply_grain: missing bit depth"); assert(!"apply_grain: missing bit depth");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment