This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 4bb9b46486b3f02a5d826ca93d5192bcbfb84ba5 Author: Timo Rothenpieler <[email protected]> AuthorDate: Tue Dec 16 15:17:55 2025 +0100 Commit: James Almer <[email protected]> CommitDate: Tue Dec 16 22:45:17 2025 -0300 avcodec/demux: validate avctx state in has_decode_delay_been_guessed --- libavformat/demux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/demux.c b/libavformat/demux.c index b1918d2110..b40739dc3a 100644 --- a/libavformat/demux.c +++ b/libavformat/demux.c @@ -762,8 +762,9 @@ static int has_decode_delay_been_guessed(AVStream *st) if (st->codecpar->codec_id != AV_CODEC_ID_H264) return 1; if (!sti->info) // if we have left find_stream_info then nb_decoded_frames won't increase anymore for stream copy return 1; + av_assert0(sti->avctx->codec_id == AV_CODEC_ID_H264); #if CONFIG_H264_DECODER - if (sti->avctx->has_b_frames && + if (sti->avctx->has_b_frames && avcodec_is_open(sti->avctx) && avpriv_h264_has_num_reorder_frames(sti->avctx) == sti->avctx->has_b_frames) return 1; #endif _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
