Commit 916dff0d authored by michael's avatar michael

bitrate sanity check (fixes assertion failure)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8293 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 60388ee5
...@@ -36,6 +36,9 @@ static int encode_init(AVCodecContext * avctx){ ...@@ -36,6 +36,9 @@ static int encode_init(AVCodecContext * avctx){
if(avctx->channels > MAX_CHANNELS) if(avctx->channels > MAX_CHANNELS)
return -1; return -1;
if(avctx->bit_rate < 24*1000)
return -1;
/* extract flag infos */ /* extract flag infos */
flags1 = 0; flags1 = 0;
flags2 = 1; 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