This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/8.0 in repository ffmpeg.
commit 115afc0ed7ffbfa521e228d309bb585177960806 Author: Michael Niedermayer <[email protected]> AuthorDate: Sun May 31 19:50:37 2026 +0200 Commit: Michael Niedermayer <[email protected]> CommitDate: Sun Jun 14 04:59:07 2026 +0200 avcodec/aac/aacdec: reject decoded frame without a valid sample rate Later code will turn this into AVERROR_BUG When returning sample_rate == 0 samples is considered a bug, we have no nice choice but to error out cleanly Fixes: assertion failure Fixes: ffmpeg_AV_CODEC_ID_AAC_DEC_fuzzer crash-0a86d46fef2442b222ee34403c21f7f582ffccb0 Signed-off-by: Michael Niedermayer <[email protected]> (cherry picked from commit e711e608273e0d7d195d2cb1912fb06d0772d96c) Signed-off-by: Michael Niedermayer <[email protected]> --- libavcodec/aac/aacdec.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libavcodec/aac/aacdec.c b/libavcodec/aac/aacdec.c index b8d53036d4..679f0324ba 100644 --- a/libavcodec/aac/aacdec.c +++ b/libavcodec/aac/aacdec.c @@ -2383,6 +2383,12 @@ static int decode_frame_ga(AVCodecContext *avctx, AACDecContext *ac, ac->oc[1].status = OC_LOCKED; } + if (samples && avctx->sample_rate <= 0) { + av_log(avctx, AV_LOG_ERROR, + "Cannot output a frame without a valid sample rate\n"); + return AVERROR_INVALIDDATA; + } + if (!ac->frame->data[0] && samples) { av_log(avctx, AV_LOG_ERROR, "no frame data found\n"); return AVERROR_INVALIDDATA; _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
