changeset 4635:2ba8d13a66bc libavcodec

bitrate sanity check (fixes assertion failure)
author michael
date Thu, 08 Mar 2007 10:25:06 +0000
parents 8b96c50c6723
children 5bcb6208ac58
files wmaenc.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/wmaenc.c	Thu Mar 08 10:21:35 2007 +0000
+++ b/wmaenc.c	Thu Mar 08 10:25:06 2007 +0000
@@ -36,6 +36,9 @@
     if(avctx->channels > MAX_CHANNELS)
         return -1;
 
+    if(avctx->bit_rate < 24*1000)
+        return -1;
+
     /* extract flag infos */
     flags1 = 0;
     flags2 = 1;