[FFmpeg-cvslog] Revert "wmapro: prevent division by zero when sample rate is unspecified"
Ronald S. Bultje
git at videolan.org
Sat Aug 4 23:54:12 CEST 2012
ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Fri Aug 3 12:06:38 2012 -0700| [66adb7ce1bc1cc5e3f1c4b1cd9f20ac68086a486] | committer: Ronald S. Bultje
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.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=66adb7ce1bc1cc5e3f1c4b1cd9f20ac68086a486
---
libavcodec/wmaprodec.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/libavcodec/wmaprodec.c b/libavcodec/wmaprodec.c
index 5fcafa2..699c1b7 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) {
More information about the ffmpeg-cvslog
mailing list