Commit 2ed76c08 authored by Michael Niedermayer's avatar Michael Niedermayer

bitrate sanity check (fixes assertion failure)

Originally committed as revision 8293 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent c4f452fd
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment