Browse Source

bitrate sanity check (fixes assertion failure)

Originally committed as revision 8293 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 18 years ago
parent
commit
2ed76c08c3
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavcodec/wmaenc.c

+ 3
- 0
libavcodec/wmaenc.c 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;


Loading…
Cancel
Save