mirror of https://github.com/mpv-player/mpv
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:
parent
7745dff356
commit
76504560cb
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue