1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

bitrate sanity check (fixes assertion failure)

Originally committed as revision 8293 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2007-03-08 10:25:06 +00:00
parent c4f452fd03
commit 2ed76c08c3

View File

@ -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;