Skip to content

Commit

Permalink
Fix clang code style check
Browse files Browse the repository at this point in the history
  • Loading branch information
jcdr428 authored May 3, 2024
1 parent d3550d3 commit 1009b83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tsMuxer/programStreamDemuxer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,8 @@ int ProgramStreamDemuxer::simpleDemuxBlock(DemuxedData& demuxedData, const PIDSe
const uint8_t* payloadData = curBuf + pesPacket->getHeaderLength() + afterPesHeader;
const int pesPayloadLen = pesPacket->getPacketLength() - pesPacket->getHeaderLength() - afterPesHeader;
const int copyLen = FFMIN(pesPayloadLen, (int)(end - payloadData));
if (copyLen < 0) {
if (copyLen < 0)
{
THROW(ERR_COMMON, "Invalid copyLen")
}
vect.append(payloadData, copyLen);
Expand Down

0 comments on commit 1009b83

Please sign in to comment.