Index: webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc |
diff --git a/webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc b/webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc |
index 97f745b50b82317cd149badd195cd188cf41cd83..88934483ad2741388894f9bc97fad207c5d92969 100644 |
--- a/webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc |
+++ b/webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc |
@@ -298,7 +298,7 @@ int VP9EncoderImpl::InitEncode(const VideoCodec* inst, |
config_->g_w = codec_.width; |
config_->g_h = codec_.height; |
config_->rc_target_bitrate = inst->startBitrate; // in kbit/s |
- config_->g_error_resilient = 1; |
+ config_->g_error_resilient = inst->VP9().resilienceOn ? 1 : 0; |
// Setting the time base of the codec. |
config_->g_timebase.num = 1; |
config_->g_timebase.den = 90000; |