Index: webrtc/modules/video_processing/frame_preprocessor.cc |
diff --git a/webrtc/modules/video_processing/frame_preprocessor.cc b/webrtc/modules/video_processing/frame_preprocessor.cc |
index 6778a597be2f576d97486cc0ae9d0c570be124c2..d91cacfe39865ac2dc0e9c034868f3f0318e5baa 100644 |
--- a/webrtc/modules/video_processing/frame_preprocessor.cc |
+++ b/webrtc/modules/video_processing/frame_preprocessor.cc |
@@ -95,7 +95,11 @@ uint32_t VPMFramePreprocessor::GetDecimatedHeight() const { |
} |
void VPMFramePreprocessor::EnableDenosing(bool enable) { |
- denoiser_.reset(new VideoDenoiser(true)); |
+ if (enable) { |
+ denoiser_.reset(new VideoDenoiser(true)); |
+ } else { |
+ denoiser_.reset(); |
+ } |
} |
const VideoFrame* VPMFramePreprocessor::PreprocessFrame( |