Skip to content

Commit

Permalink
Drop unused packets
Browse files Browse the repository at this point in the history
  • Loading branch information
Keukhan committed Aug 26, 2024
1 parent 872ea01 commit 0569f61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/projects/modules/ffmpeg/ffmpeg_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,15 +229,15 @@ namespace ffmpeg
{
if (!packet)
{
logte("Packet is null");
return false;
}

// Find MediaTrack and AVSTream from MediaTrackID
// Drop packets that do not need to be transmitted
auto [av_stream, media_track] = GetTrack(packet->GetTrackId());
if (av_stream == nullptr || media_track == nullptr)
{
logtw("Could not find track. track_id:%d", packet->GetTrackId());
return false;
return true;
}

// Start Timestamp
Expand Down

0 comments on commit 0569f61

Please sign in to comment.