aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpcodecs
diff options
context:
space:
mode:
authorGravatar arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-18 15:23:34 +0000
committerGravatar arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-18 15:23:34 +0000
commit76504560cb9e9f5ea8414f9246719e76a2f6b571 (patch)
tree08fb70cf604ab12337f533f69bcc2695c18be7d4 /libmpcodecs
parent7745dff356496f53cc23ec7fae9d7df20f5c4dd9 (diff)
bitrate>16000 means bits not kbits - noticed by George Hawkins <george_hawkins@yahoo.com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5678 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/ve_lavc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libmpcodecs/ve_lavc.c b/libmpcodecs/ve_lavc.c
index e0f65639ff..18f65b9ae7 100644
--- a/libmpcodecs/ve_lavc.c
+++ b/libmpcodecs/ve_lavc.c
@@ -98,7 +98,9 @@ static int config(struct vf_instance_s* vf,
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 */