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
This commit is contained in:
arpi 2002-04-18 15:23:34 +00:00
parent 7745dff356
commit 76504560cb
1 changed files with 3 additions and 1 deletions

View File

@ -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 */