This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit f3b13867076d616de36d7d8c50298c113b1c62ba Author: Zhao Zhili <[email protected]> AuthorDate: Wed Jul 22 19:35:41 2026 +0800 Commit: Zhao Zhili <[email protected]> CommitDate: Wed Jul 29 04:37:36 2026 +0000 avcodec/videotoolboxenc: check PTS validity before timestamp conversion --- libavcodec/videotoolboxenc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c index de52923702..73f0ac161a 100644 --- a/libavcodec/videotoolboxenc.c +++ b/libavcodec/videotoolboxenc.c @@ -2313,6 +2313,11 @@ static int vtenc_cm_to_avpacket( pts = CMSampleBufferGetPresentationTimeStamp(sample_buffer); dts = CMSampleBufferGetDecodeTimeStamp (sample_buffer); + if (CMTIME_IS_INVALID(pts)) { + av_log(avctx, AV_LOG_ERROR, "PTS is invalid.\n"); + return AVERROR_EXTERNAL; + } + if (CMTIME_IS_INVALID(dts)) { if (!vtctx->has_b_frames) { dts = pts; _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
