aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2012-08-03 12:06:38 -0700
committerRonald S. Bultje <rsbultje@gmail.com>2012-08-03 12:06:38 -0700
commit66adb7ce1bc1cc5e3f1c4b1cd9f20ac68086a486 (patch)
tree4df9ee40692a481fb27651ff40c704e5f6a91fc0
parent36936080239ba9e162f9f5d0f722ce579cb606cf (diff)
downloadffmpeg-66adb7ce1bc1cc5e3f1c4b1cd9f20ac68086a486.tar.gz
Revert "wmapro: prevent division by zero when sample rate is unspecified"
This reverts commit 36936080239ba9e162f9f5d0f722ce579cb606cf. It was already applied; no idea why it didn't error out while re-applying it.
-rw-r--r--libavcodec/wmaprodec.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libavcodec/wmaprodec.c b/libavcodec/wmaprodec.c
index 5fcafa29a7..699c1b7503 100644
--- a/libavcodec/wmaprodec.c
+++ b/libavcodec/wmaprodec.c
@@ -340,11 +340,6 @@ static av_cold int decode_init(AVCodecContext *avctx)
return AVERROR_INVALIDDATA;
}
- if (s->avctx->sample_rate <= 0) {
- av_log(avctx, AV_LOG_ERROR, "invalid sample rate\n");
- return AVERROR_INVALIDDATA;
- }
-
s->num_channels = avctx->channels;
if (s->num_channels < 0) {