justdan96 / tsMuxer

tsMuxer is a transport stream muxer for remuxing/muxing elementary streams, EVO/VOB/MPG, MKV/MKA, MP4/MOV, TS, M2TS to TS to M2TS. Supported video codecs H.264/AVC, H.265/HEVC, VC-1, MPEG2. Supported audio codecs AAC, AC3 / E-AC3(DD+), DTS/ DTS-HD.
Apache License 2.0
829 stars 140 forks source link

if buff + frameSize is bigger than srcEnd, break before memcpy (movDemuxer.cpp::extractData) #838

Closed iwashiira closed 3 months ago

iwashiira commented 3 months ago

fix #837

Since frameSize is initialized in the while statement, we added this check immediately after that initialization, not in the conditional expression of the while statement.