summaryrefslogtreecommitdiff
path: root/modules/vp9/encode.c
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2016-06-06 17:28:52 +0200
committerAlfred E. Heggestad <aeh@db.org>2016-06-06 17:28:52 +0200
commit291332d58c3bc67eb3f937704e1005aeee673d7e (patch)
tree4344a4d60d1779058ae60f05bf3a314f546ac21d /modules/vp9/encode.c
parent83b706f76b791a315fbc3760f9b9c204fef44031 (diff)
vp9: fix for Debian Jessie (fixes #138)
Diffstat (limited to 'modules/vp9/encode.c')
-rw-r--r--modules/vp9/encode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/vp9/encode.c b/modules/vp9/encode.c
index faef958..749a5bb 100644
--- a/modules/vp9/encode.c
+++ b/modules/vp9/encode.c
@@ -127,8 +127,6 @@ static int open_encoder(struct videnc_state *ves, const struct vidsz *size)
cfg.g_lag_in_frames = 0;
cfg.rc_end_usage = VPX_VBR;
cfg.kf_mode = VPX_KF_AUTO;
- cfg.g_bit_depth = 8;
- cfg.g_input_bit_depth = 8;
if (ves->ctxup) {
debug("vp9: re-opening encoder\n");
@@ -149,10 +147,12 @@ static int open_encoder(struct videnc_state *ves, const struct vidsz *size)
if (res) {
warning("vp9: codec ctrl: %s\n", vpx_codec_err_to_string(res));
}
+#ifdef VP9E_SET_NOISE_SENSITIVITY
res = vpx_codec_control(&ves->ctx, VP9E_SET_NOISE_SENSITIVITY, 0);
if (res) {
warning("vp9: codec ctrl: %s\n", vpx_codec_err_to_string(res));
}
+#endif
info("vp9: encoder opened, picture size %u x %u\n", size->w, size->h);