This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 7e3781e3ca8a9f5cc6ba14e05cc5fd12498bbaa9
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Fri Feb 6 23:28:12 2026 +0100
Commit:     Andreas Rheinhardt <[email protected]>
CommitDate: Wed Feb 11 12:07:38 2026 +0100

    avcodec/libcodec2: Remove always-false checks
    
    Already checked via CODEC_SAMPLERATES and CODEC_SAMPLEFMTS.
    
    Reviewed-by: James Almer <[email protected]>
    Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 libavcodec/libcodec2.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/libavcodec/libcodec2.c b/libavcodec/libcodec2.c
index 4e82b9711d..8895865721 100644
--- a/libavcodec/libcodec2.c
+++ b/libavcodec/libcodec2.c
@@ -104,13 +104,6 @@ static av_cold int libcodec2_init_encoder(AVCodecContext 
*avctx)
 {
     LibCodec2Context *c2 = avctx->priv_data;
 
-    //will need to be smarter once we get wideband support
-    if (avctx->sample_rate != 8000 ||
-        avctx->sample_fmt != AV_SAMPLE_FMT_S16) {
-        av_log(avctx, AV_LOG_ERROR, "only 8 kHz 16-bit mono allowed\n");
-        return AVERROR(EINVAL);
-    }
-
     avctx->extradata = av_mallocz(CODEC2_EXTRADATA_SIZE + 
AV_INPUT_BUFFER_PADDING_SIZE);
     if (!avctx->extradata) {
         return AVERROR(ENOMEM);

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to