1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

Revert "wmapro: prevent division by zero when sample rate is unspecified"

This reverts commit 3693608023. It was
already applied; no idea why it didn't error out while re-applying it.
This commit is contained in:
Ronald S. Bultje 2012-08-03 12:06:38 -07:00
parent 3693608023
commit 66adb7ce1b

View File

@ -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) {