diff options
Diffstat (limited to 'www/chromium/files/patch-third__party_webrtc_modules_video__coding_receiver.cc')
-rw-r--r-- | www/chromium/files/patch-third__party_webrtc_modules_video__coding_receiver.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/www/chromium/files/patch-third__party_webrtc_modules_video__coding_receiver.cc b/www/chromium/files/patch-third__party_webrtc_modules_video__coding_receiver.cc new file mode 100644 index 000000000000..d5eefc9ee4f0 --- /dev/null +++ b/www/chromium/files/patch-third__party_webrtc_modules_video__coding_receiver.cc @@ -0,0 +1,13 @@ +--- third_party/webrtc/modules/video_coding/receiver.cc.orig 2016-05-11 19:04:03 UTC ++++ third_party/webrtc/modules/video_coding/receiver.cc +@@ -121,8 +121,8 @@ VCMEncodedFrame* VCMReceiver::FrameForDe + // Assume that render timing errors are due to changes in the video stream. + if (*next_render_time_ms < 0) { + timing_error = true; +- } else if (std::abs(*next_render_time_ms - now_ms) > max_video_delay_ms_) { +- int frame_delay = static_cast<int>(std::abs(*next_render_time_ms - now_ms)); ++ } else if (std::labs(*next_render_time_ms - now_ms) > max_video_delay_ms_) { ++ int frame_delay = static_cast<int>(std::labs(*next_render_time_ms - now_ms)); + LOG(LS_WARNING) << "A frame about to be decoded is out of the configured " + << "delay bounds (" << frame_delay << " > " + << max_video_delay_ms_ |