From 1f262cc5da79ad35aac683f8209491f133210bda Mon Sep 17 00:00:00 2001 From: Ying Wang Date: Thu, 23 Aug 2018 13:54:08 +0200 Subject: [PATCH] Fix flaky test TestFlexfecRtpStatePreservation. Videosendstream can be created before capturer starts, so initially the frame resolution may be zero. Add a check to prevent test failure and undesired behavior. Bug: webrtc:7737 Change-Id: I8f4402e866f45ea1eb112437f866170691a111f6 Reviewed-on: https://webrtc-review.googlesource.com/95102 Commit-Queue: Ying Wang Reviewed-by: Rasmus Brandt Cr-Commit-Position: refs/heads/master@{#24404} --- modules/video_coding/media_opt_util.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/video_coding/media_opt_util.cc b/modules/video_coding/media_opt_util.cc index 125e6db81d..436cb0ffdf 100644 --- a/modules/video_coding/media_opt_util.cc +++ b/modules/video_coding/media_opt_util.cc @@ -505,8 +505,8 @@ VCMLossProtectionLogic::VCMLossProtectionLogic(int64_t nowMs) _shortMaxLossPr255(0), _packetsPerFrame(0.9999f), _packetsPerFrameKey(0.9999f), - _codecWidth(0), - _codecHeight(0), + _codecWidth(704), + _codecHeight(576), _numLayers(1) { Reset(nowMs); }