commit | 9a4c93b7d73b6f6ee755f309744f6ec35664cac7 | [log] [tgz] |
---|---|---|
author | Elad Alon <eladalon@webrtc.org> | Thu May 16 12:30:57 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Thu May 16 13:29:07 2019 |
tree | f7bf861b59fc7721d7eb656d0368a0042f01b280 | |
parent | f2047874785a18bc2653ea8ab119945142f49ac2 [diff] |
Add DCHECK in LibvpxVp8Encoder Ensure that frame_buffer_controller_ does not get assigned null by the factory. Bug: None Change-Id: I84e141ae0390cd024863f88cdcdc79b8b13e7c64 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/137043 Reviewed-by: Rasmus Brandt <brandtr@webrtc.org> Commit-Queue: Elad Alon <eladalon@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27962}
diff --git a/modules/video_coding/codecs/vp8/libvpx_vp8_encoder.cc b/modules/video_coding/codecs/vp8/libvpx_vp8_encoder.cc index 0bb08c7..c29832d 100644 --- a/modules/video_coding/codecs/vp8/libvpx_vp8_encoder.cc +++ b/modules/video_coding/codecs/vp8/libvpx_vp8_encoder.cc
@@ -490,6 +490,7 @@ Vp8TemporalLayersFactory factory; frame_buffer_controller_ = factory.Create(*inst); } + RTC_DCHECK(frame_buffer_controller_); number_of_cores_ = number_of_cores; timestamp_ = 0;