This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 44252daaeb4b638b807f914dda34bec63fbd24ef Author: WindrunnerSky <> AuthorDate: Fri Oct 2 11:47:02 2026 +0000 Commit: James Almer <[email protected]> CommitDate: Tue Nov 3 17:19:41 2026 +0000 avcodec/hw_base_encode: guard timestamp fixup for empty input Draining an encoder before any frame has been submitted leaves pic_end NULL. Skip the timestamp fixup in that case; the receive path will then return EOF without producing a packet. The same guard was submitted earlier by Zach Denton: https://patchwork.ffmpeg.org/project/ffmpeg/patch/[email protected]/ Fixes: https://code.ffmpeg.org/FFmpeg/FFmpeg/issues/24248 Assisted-by: Fairy --- libavcodec/hw_base_encode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/hw_base_encode.c b/libavcodec/hw_base_encode.c index 307e76ed79..5ba194fab5 100644 --- a/libavcodec/hw_base_encode.c +++ b/libavcodec/hw_base_encode.c @@ -508,7 +508,7 @@ static int hw_base_encode_send_frame(AVCodecContext *avctx, FFHWBaseEncodeContex // Fix timestamps if we hit end-of-stream before the initial decode // delay has elapsed. - if (ctx->input_order <= ctx->decode_delay) + if (ctx->input_order <= ctx->decode_delay && ctx->pic_end) ctx->dts_pts_diff = ctx->pic_end->pts - ctx->first_pts; } -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
