Skip to content

Commit

Permalink
Organized source code
Browse files Browse the repository at this point in the history
  • Loading branch information
dimiden committed Dec 27, 2024
1 parent ad9f3bf commit 329e111
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions src/projects/modules/segment_writer/writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,7 @@ bool Writer::WritePacket(const std::shared_ptr<const MediaPacket> &packet)
switch (packet->GetBitstreamFormat())
{
case cmn::BitstreamFormat::H264_AVCC:
[[fallthrough]];
case cmn::BitstreamFormat::HVCC:
data = packet->GetData();
length_list.push_back(data->GetLength());
Expand Down Expand Up @@ -840,24 +841,27 @@ bool Writer::WritePacket(const std::shared_ptr<const MediaPacket> &packet)
}
}
break;
case cmn::BitstreamFormat::AAC_LATM:
[[fallthrough]];

case cmn::BitstreamFormat::Unknown:
[[fallthrough]];
case cmn::BitstreamFormat::VP8:
[[fallthrough]];
case cmn::BitstreamFormat::OPUS:
[[fallthrough]];
case cmn::BitstreamFormat::JPEG:
[[fallthrough]];
case cmn::BitstreamFormat::H264_RTP_RFC_6184:
[[fallthrough]];
case cmn::BitstreamFormat::VP8:
[[fallthrough]];
case cmn::BitstreamFormat::VP8_RTP_RFC_7741:
[[fallthrough]];
case cmn::BitstreamFormat::AAC_MPEG4_GENERIC:
[[fallthrough]];
case cmn::BitstreamFormat::AAC_LATM:
[[fallthrough]];
case cmn::BitstreamFormat::OPUS:
[[fallthrough]];
case cmn::BitstreamFormat::OPUS_RTP_RFC_7587:
[[fallthrough]];
case cmn::BitstreamFormat::JPEG:
[[fallthrough]];
case cmn::BitstreamFormat::PNG:
[[fallthrough]];
case cmn::BitstreamFormat::ID3v2:
[[fallthrough]];
case cmn::BitstreamFormat::MP3:
Expand All @@ -866,7 +870,7 @@ bool Writer::WritePacket(const std::shared_ptr<const MediaPacket> &packet)
[[fallthrough]];
case cmn::BitstreamFormat::CUE:
[[fallthrough]];
case cmn::BitstreamFormat::PNG:
case cmn::BitstreamFormat::AMF:
break;
}

Expand Down

0 comments on commit 329e111

Please sign in to comment.