changeset 5677:a21cab74cde8

bitrate>16000 means bits not kbits - noticed by George Hawkins <george_hawkins@yahoo.com>
author arpi
date Thu, 18 Apr 2002 15:23:34 +0000
parents f0c86c815e92
children 8849904de1db
files libmpcodecs/ve_lavc.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ve_lavc.c	Thu Apr 18 15:10:59 2002 +0000
+++ b/libmpcodecs/ve_lavc.c	Thu Apr 18 15:23:34 2002 +0000
@@ -98,7 +98,9 @@
 
     lavc_venc_context.width = width;
     lavc_venc_context.height = height;
-    if (lavc_param_vbitrate >= 0) /* != -1 */
+    if (lavc_param_vbitrate > 16000) /* != -1 */
+	lavc_venc_context.bit_rate = lavc_param_vbitrate;
+    else if (lavc_param_vbitrate >= 0) /* != -1 */
 	lavc_venc_context.bit_rate = lavc_param_vbitrate*1000;
     else
 	lavc_venc_context.bit_rate = 800000; /* default */