This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new 94b7385592 avcodec/mlpenc: Mark unreachable cases as such
94b7385592 is described below
commit 94b73855924bbb99d24466131b9058940c4d1993
Author: Andreas Rheinhardt <[email protected]>
AuthorDate: Mon Jan 19 15:23:18 2026 +0100
Commit: James Almer <[email protected]>
CommitDate: Tue Jan 20 00:38:35 2026 +0000
avcodec/mlpenc: Mark unreachable cases as such
Signed-off-by: Andreas Rheinhardt <[email protected]>
---
libavcodec/mlpenc.c | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/libavcodec/mlpenc.c b/libavcodec/mlpenc.c
index 475a70c225..4d4c33f485 100644
--- a/libavcodec/mlpenc.c
+++ b/libavcodec/mlpenc.c
@@ -521,10 +521,7 @@ static av_cold int mlp_encode_init(AVCodecContext *avctx)
ctx->fs = 0x10 + 2;
break;
default:
- av_log(avctx, AV_LOG_ERROR, "Unsupported sample rate %d. Supported "
- "sample rates are 44100, 88200, 176400, 48000, "
- "96000, and 192000.\n", avctx->sample_rate);
- return AVERROR(EINVAL);
+ av_unreachable("Checked via CODEC_SAMPLERATES");
}
ctx->coded_sample_rate[1] = -1 & 0xf;
@@ -547,9 +544,7 @@ static av_cold int mlp_encode_init(AVCodecContext *avctx)
avctx->bits_per_raw_sample = 24;
break;
default:
- av_log(avctx, AV_LOG_ERROR, "Sample format not supported. "
- "Only 16- and 24-bit samples are supported.\n");
- return AVERROR(EINVAL);
+ av_unreachable("Checked via CODEC_SAMPLEFMTS");
}
ctx->coded_sample_fmt[1] = -1 & 0xf;
@@ -613,7 +608,7 @@ static av_cold int mlp_encode_init(AVCodecContext *avctx)
ctx->thd_substream_info = 0x3C;
break;
default:
- av_assert1(!"AVCodec.ch_layouts needs to be updated");
+ av_unreachable("Checked via CODEC_CH_LAYOUTS");
}
ctx->flags = 0;
ctx->channel_occupancy = 0;
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]