| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 #include "webrtc/modules/video_coding/main/source/jitter_buffer.h" | 10 #include "webrtc/modules/video_coding/main/source/jitter_buffer.h" |
| (...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 682 << " consecutive old packets received. Flushing the jitter buffer."; | 682 << " consecutive old packets received. Flushing the jitter buffer."; |
| 683 Flush(); | 683 Flush(); |
| 684 return kFlushIndicator; | 684 return kFlushIndicator; |
| 685 } | 685 } |
| 686 return kOldPacket; | 686 return kOldPacket; |
| 687 } | 687 } |
| 688 | 688 |
| 689 num_consecutive_old_packets_ = 0; | 689 num_consecutive_old_packets_ = 0; |
| 690 | 690 |
| 691 if (packet.codec == kVideoCodecVP9) { | 691 if (packet.codec == kVideoCodecVP9) { |
| 692 if (packet.codecSpecificHeader.codecHeader.VP9.flexible_mode) { | |
| 693 // TODO(asapersson): Add support for flexible mode. | |
| 694 return kGeneralError; | |
| 695 } | |
| 696 if (!packet.codecSpecificHeader.codecHeader.VP9.flexible_mode) { | 692 if (!packet.codecSpecificHeader.codecHeader.VP9.flexible_mode) { |
| 697 if (vp9_ss_map_.Insert(packet)) | 693 if (vp9_ss_map_.Insert(packet)) |
| 698 vp9_ss_map_.UpdateFrames(&incomplete_frames_); | 694 vp9_ss_map_.UpdateFrames(&incomplete_frames_); |
| 699 | 695 |
| 700 vp9_ss_map_.UpdatePacket(const_cast<VCMPacket*>(&packet)); | 696 vp9_ss_map_.UpdatePacket(const_cast<VCMPacket*>(&packet)); |
| 701 } | 697 } |
| 702 if (!last_decoded_state_.in_initial_state()) | 698 if (!last_decoded_state_.in_initial_state()) |
| 703 vp9_ss_map_.RemoveOld(last_decoded_state_.time_stamp()); | 699 vp9_ss_map_.RemoveOld(last_decoded_state_.time_stamp()); |
| 704 } | 700 } |
| 705 | 701 |
| (...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1330 } | 1326 } |
| 1331 // Evaluate if the RTT is higher than |high_rtt_nack_threshold_ms_|, and in | 1327 // Evaluate if the RTT is higher than |high_rtt_nack_threshold_ms_|, and in |
| 1332 // that case we don't wait for retransmissions. | 1328 // that case we don't wait for retransmissions. |
| 1333 if (high_rtt_nack_threshold_ms_ >= 0 && | 1329 if (high_rtt_nack_threshold_ms_ >= 0 && |
| 1334 rtt_ms_ >= high_rtt_nack_threshold_ms_) { | 1330 rtt_ms_ >= high_rtt_nack_threshold_ms_) { |
| 1335 return false; | 1331 return false; |
| 1336 } | 1332 } |
| 1337 return true; | 1333 return true; |
| 1338 } | 1334 } |
| 1339 } // namespace webrtc | 1335 } // namespace webrtc |
| OLD | NEW |