Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2669)

Unified Diff: remoting/base/decoder_row_based.cc

Issue 4953001: Reset decompressor after each frame in DecoderRowBased::DecodePacket(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/decoder_row_based.cc
diff --git a/remoting/base/decoder_row_based.cc b/remoting/base/decoder_row_based.cc
index 1a0efad58aba84a3038167f330146f2a2aafca07..abd0a4bb9d29eb45e4524abe01711adf67a00830 100644
--- a/remoting/base/decoder_row_based.cc
+++ b/remoting/base/decoder_row_based.cc
@@ -120,13 +120,17 @@ Decoder::DecodeResult DecoderRowBased::DecodePacket(
}
}
- if (state_ == kDone && row_y_ < clip_.height()) {
- state_ = kError;
- LOG(WARNING) << "Received LAST_PACKET, but didn't get enough data.";
- return DECODE_ERROR;
- }
+ if (state_ == kDone) {
+ if (row_y_ < clip_.height()) {
+ state_ = kError;
+ return DECODE_ERROR;
+ }
- return state_ == kDone ? DECODE_DONE : DECODE_IN_PROGRESS;
+ decompressor_->Reset();
+ return DECODE_DONE;
+ } else {
+ return DECODE_IN_PROGRESS;
+ }
}
void DecoderRowBased::UpdateStateForPacket(const VideoPacket* packet) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698