[Ffmpeg-cvslog] r8293 - trunk/libavcodec/wmaenc.c

michael subversion
Thu Mar 8 11:25:06 CET 2007


Author: michael
Date: Thu Mar  8 11:25:06 2007
New Revision: 8293

Modified:
   trunk/libavcodec/wmaenc.c

Log:
bitrate sanity check (fixes assertion failure)


Modified: trunk/libavcodec/wmaenc.c
==============================================================================
--- trunk/libavcodec/wmaenc.c	(original)
+++ trunk/libavcodec/wmaenc.c	Thu Mar  8 11:25:06 2007
@@ -36,6 +36,9 @@ static int encode_init(AVCodecContext * 
     if(avctx->channels > MAX_CHANNELS)
         return -1;
 
+    if(avctx->bit_rate < 24*1000)
+        return -1;
+
     /* extract flag infos */
     flags1 = 0;
     flags2 = 1;




More information about the ffmpeg-cvslog mailing list