summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2016-11-05 17:49:00 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2016-11-05 17:49:43 +0100
commit0a03c6f08cacb416f216c77550a6480d0b3f0898 (patch)
tree6d726b36e97f4095057bc71eab9776aa0fdf6c7c /modules
parent11efdf755eea58b4809b320506f41e063ae3d62b (diff)
vp8: check for VPX_ERROR_RESILIENT_DEFAULT
Diffstat (limited to 'modules')
-rw-r--r--modules/vp8/encode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/vp8/encode.c b/modules/vp8/encode.c
index 8b9e91b..befbb05 100644
--- a/modules/vp8/encode.c
+++ b/modules/vp8/encode.c
@@ -102,7 +102,9 @@ static int open_encoder(struct videnc_state *ves, const struct vidsz *size)
cfg.g_h = size->h;
cfg.g_timebase.num = 1;
cfg.g_timebase.den = ves->fps;
+#ifdef VPX_ERROR_RESILIENT_DEFAULT
cfg.g_error_resilient = VPX_ERROR_RESILIENT_DEFAULT;
+#endif
cfg.g_pass = VPX_RC_ONE_PASS;
cfg.g_lag_in_frames = 0;
cfg.rc_end_usage = VPX_VBR;