avcodec/aac/aacdec: reject decoded frame without a valid sample rate
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 31 May 2026 17:50:37 +0000 (19:50 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 18 Jun 2026 18:30:58 +0000 (20:30 +0200)
commitcadf292e61f99b6746c83352c3571012bd0af8ce
tree3c162f72acbec1b572e59bc77c5d722d44bd7181
parent02cc0fcb595dc98ec0b56e566d21e21364d89b9e
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 <michael@niedermayer.cc>
(cherry picked from commit e711e608273e0d7d195d2cb1912fb06d0772d96c)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/aac/aacdec.c