From 4e713ff8e89d8cf684bdad2b81d1316cda91fc7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20Bostr=C3=B6m?= Date: Wed, 15 Mar 2017 14:19:58 -0400 Subject: [PATCH] Use VPX_ERROR_RESILIENT_DEFAULT constant. Replaces a hard-coded 1, we don't support old libvpx versions that don't have this constant defined anymore, so this can be dropped. BUG=webrtc:7349 R=marpan@google.com, marpan@webrtc.org Review-Url: https://codereview.webrtc.org/2622633005 . Cr-Commit-Position: refs/heads/master@{#17263} --- webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc b/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc index 3409de3f65..7257b89b5f 100644 --- a/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc +++ b/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc @@ -417,9 +417,7 @@ int VP8EncoderImpl::InitEncode(const VideoCodec* inst, configurations_[0].g_error_resilient = 0; break; case kResilientStream: - configurations_[0].g_error_resilient = 1; // TODO(holmer): Replace with - // VPX_ERROR_RESILIENT_DEFAULT when we - // drop support for libvpx 9.6.0. + configurations_[0].g_error_resilient = VPX_ERROR_RESILIENT_DEFAULT; break; case kResilientFrames: return WEBRTC_VIDEO_CODEC_ERR_PARAMETER; // Not supported