From 2ed76c08c34b7fc0acac32307cc63f3b15a58981 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 8 Mar 2007 10:25:06 +0000 Subject: bitrate sanity check (fixes assertion failure) Originally committed as revision 8293 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/wmaenc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavcodec/wmaenc.c') diff --git a/libavcodec/wmaenc.c b/libavcodec/wmaenc.c index f1b5529d2f..4fe3083b8c 100644 --- a/libavcodec/wmaenc.c +++ b/libavcodec/wmaenc.c @@ -36,6 +36,9 @@ static int encode_init(AVCodecContext * avctx){ if(avctx->channels > MAX_CHANNELS) return -1; + if(avctx->bit_rate < 24*1000) + return -1; + /* extract flag infos */ flags1 = 0; flags2 = 1; -- cgit v1.2.3