Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions webrtc-media/src/main/cpp/src/media/MediaRecorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,13 @@ namespace ffmpeg

if (recorded.packet == nullptr
|| av_new_packet(recorded.packet.get(), static_cast<int>(frame->size)) < 0) {
// Dropped like a frame the queue has no room for: video goes on
// from the next key frame.
if (video) {
input->waiting_for_key_frame = true;
WantKeyFrameLocked(input);
}

return;
}

Expand Down
Loading