aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/wmaprodec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-06-21 03:42:16 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-07-03 20:21:55 +0200
commit12777f30a88deefb943b0858b8ab554f5c91b76d (patch)
tree1cad91de6b4f97df325278be9b5912717c419811 /libavcodec/wmaprodec.c
parent73646259a07188a38a9f712a55c7516a98c42668 (diff)
downloadffmpeg-12777f30a88deefb943b0858b8ab554f5c91b76d.tar.gz
avcodec/wma,wmaprodec: Remove always-false checks
None of the codecs used here has the AV_CODEC_CAP_CHANNEL_CONF cap set, so the sample rate is checked generically. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/wmaprodec.c')
-rw-r--r--libavcodec/wmaprodec.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libavcodec/wmaprodec.c b/libavcodec/wmaprodec.c
index 44e5da08ab..7f3dc7fd8b 100644
--- a/libavcodec/wmaprodec.c
+++ b/libavcodec/wmaprodec.c
@@ -471,11 +471,6 @@ static av_cold int decode_init(WMAProDecodeCtx *s, AVCodecContext *avctx, int nu
return AVERROR_INVALIDDATA;
}
- if (s->avctx->sample_rate <= 0) {
- av_log(avctx, AV_LOG_ERROR, "invalid sample rate\n");
- return AVERROR_INVALIDDATA;
- }
-
if (s->nb_channels <= 0) {
av_log(avctx, AV_LOG_ERROR, "invalid number of channels %d\n",
s->nb_channels);