From f70eb1cb0b9308b7bae5fd390015e05ffb0d4081 Mon Sep 17 00:00:00 2001 From: Marius Momeu Date: Sat, 2 May 2026 12:28:30 +0200 Subject: [PATCH] avcodec/ralf: Add the missing return statement after the error log Signed-off-by: Michael Niedermayer (cherry picked from commit ff3223b5d689015403b8355c11803045a2a7995e) Signed-off-by: Michael Niedermayer --- libavcodec/ralf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/ralf.c b/libavcodec/ralf.c index 036c3a931c..8d6e6f3255 100644 --- a/libavcodec/ralf.c +++ b/libavcodec/ralf.c @@ -157,6 +157,7 @@ static av_cold int decode_init(AVCodecContext *avctx) if (ctx->max_frame_size > (1 << 20) || !ctx->max_frame_size) { av_log(avctx, AV_LOG_ERROR, "invalid frame size %d\n", ctx->max_frame_size); + return AVERROR_INVALIDDATA; } ctx->max_frame_size = FFMAX(ctx->max_frame_size, avctx->sample_rate);