diff --git a/src/projects/modules/segment_writer/writer.cpp b/src/projects/modules/segment_writer/writer.cpp index c1e534b95..4779e754b 100644 --- a/src/projects/modules/segment_writer/writer.cpp +++ b/src/projects/modules/segment_writer/writer.cpp @@ -783,6 +783,7 @@ bool Writer::WritePacket(const std::shared_ptr &packet) switch (packet->GetBitstreamFormat()) { case cmn::BitstreamFormat::H264_AVCC: + [[fallthrough]]; case cmn::BitstreamFormat::HVCC: data = packet->GetData(); length_list.push_back(data->GetLength()); @@ -840,24 +841,27 @@ bool Writer::WritePacket(const std::shared_ptr &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: @@ -866,7 +870,7 @@ bool Writer::WritePacket(const std::shared_ptr &packet) [[fallthrough]]; case cmn::BitstreamFormat::CUE: [[fallthrough]]; - case cmn::BitstreamFormat::PNG: + case cmn::BitstreamFormat::AMF: break; }