webrtc/modules/video_coding/codecs
Elad Alon 9a86275860 Fix dangling pointers issue in LibvpxVp8Encoder::Encode()
LibvpxVp8Encoder::Encode() creates a local instance of
rtc::scoped_refptr<I420BufferInterface>, then sets members to
point into the internal state of that I420BufferInterface. These
pointers remain in place after the buffer is destroyed.

This CL fixes the issue by deleting the references when the
function exits.

Bug: webrtc:10570
Change-Id: I9623e2ff3dd43e8fd1d1cc7696a3f28227d4544b
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/133882
Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org>
Reviewed-by: Erik Språng <sprang@webrtc.org>
Commit-Queue: Elad Alon <eladalon@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#27738}
2019-04-24 12:58:19 +00:00
..
h264 Revert "Copy video frames metadata between encoded and plain frames in one place" 2019-04-24 12:56:52 +00:00
interface [Cleanup] Add missing #include. Remove useless ones. IWYU part 2. 2018-11-28 18:25:07 +00:00
multiplex Reland "Replace usage of old SetRates/SetRateAllocation methods" 2019-04-12 13:37:32 +00:00
test Switch to RTC_LOG(LS_INFO) for non-perf VideoCodecTest text output. 2019-04-15 12:08:15 +00:00
vp8 Fix dangling pointers issue in LibvpxVp8Encoder::Encode() 2019-04-24 12:58:19 +00:00
vp9 Revert "Copy video frames metadata between encoded and plain frames in one place" 2019-04-24 12:56:52 +00:00