You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-16 22:42:38 +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:
@ -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;
|
||||||
|
Reference in New Issue
Block a user