Commit f199bab7 authored by Adrian Grange's avatar Adrian Grange Committed by Gerrit Code Review
Browse files

Merge "Added Reset method to TwopassStatsStore"

parents 7ca59827 30f58b52
...@@ -126,6 +126,9 @@ void EncoderTest::RunLoop(VideoSource *video) { ...@@ -126,6 +126,9 @@ void EncoderTest::RunLoop(VideoSource *video) {
#if CONFIG_VP8_DECODER #if CONFIG_VP8_DECODER
vpx_codec_dec_cfg_t dec_cfg = {0}; vpx_codec_dec_cfg_t dec_cfg = {0};
#endif #endif
stats_.Reset();
for (unsigned int pass = 0; pass < passes_; pass++) { for (unsigned int pass = 0; pass < passes_; pass++) {
last_pts_ = 0; last_pts_ = 0;
......
...@@ -65,6 +65,10 @@ class TwopassStatsStore { ...@@ -65,6 +65,10 @@ class TwopassStatsStore {
return buf; return buf;
} }
void Reset() {
buffer_.clear();
}
protected: protected:
std::string buffer_; std::string buffer_;
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment