From 1009b83e1b8a7a499178edbdf0b39990293afd1d Mon Sep 17 00:00:00 2001 From: jcdr428 <56721609+jcdr428@users.noreply.github.com> Date: Fri, 3 May 2024 09:36:51 +0100 Subject: [PATCH] Fix clang code style check --- tsMuxer/programStreamDemuxer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tsMuxer/programStreamDemuxer.cpp b/tsMuxer/programStreamDemuxer.cpp index d10bf0bc..f480ae44 100644 --- a/tsMuxer/programStreamDemuxer.cpp +++ b/tsMuxer/programStreamDemuxer.cpp @@ -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);