comparison wmaenc.c @ 4635:2ba8d13a66bc libavcodec

bitrate sanity check (fixes assertion failure)
author michael
date Thu, 08 Mar 2007 10:25:06 +0000
parents 7b9ce6f729ae
children 99d9dd34903b
comparison
equal deleted inserted replaced
4634:8b96c50c6723 4635:2ba8d13a66bc
32 uint8_t *extradata; 32 uint8_t *extradata;
33 33
34 s->avctx = avctx; 34 s->avctx = avctx;
35 35
36 if(avctx->channels > MAX_CHANNELS) 36 if(avctx->channels > MAX_CHANNELS)
37 return -1;
38
39 if(avctx->bit_rate < 24*1000)
37 return -1; 40 return -1;
38 41
39 /* extract flag infos */ 42 /* extract flag infos */
40 flags1 = 0; 43 flags1 = 0;
41 flags2 = 1; 44 flags2 = 1;