commit | ee13e8919c20de5860a510e91fac71fd5a7e9b8d | [log] [tgz] |
---|---|---|
author | philipel <philipel@webrtc.org> | Wed Aug 02 02:07:48 2017 -0700 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Aug 02 09:07:48 2017 +0000 |
tree | cc4a18332b3f5388bb117cb7995edd19b90e829e | |
parent | 6f1f8e972df5226233d45fb46e72dc2ad28f52e6 [diff] [blame] |
Fix off-by-one bugs in video_coding::PacketBuffer when the buffer is filled with a single frame. BUG=webrtc:8028 Review-Url: https://codereview.webrtc.org/2993513002 Cr-Commit-Position: refs/heads/master@{#19209}
diff --git a/webrtc/modules/video_coding/frame_object.cc b/webrtc/modules/video_coding/frame_object.cc index 4c4537c..663ea6f 100644 --- a/webrtc/modules/video_coding/frame_object.cc +++ b/webrtc/modules/video_coding/frame_object.cc
@@ -93,7 +93,7 @@ frame_type_ = first_packet->frameType; } - GetBitstream(_buffer); + RTC_DCHECK(GetBitstream(_buffer)); _encodedWidth = first_packet->width; _encodedHeight = first_packet->height;