mirror of https://github.com/neutrinolabs/xrdp
fix for odd width, height
This commit is contained in:
parent
112a534f4c
commit
485e64ee76
|
@ -138,8 +138,8 @@ xrdp_encoder_x264_encode(void *handle, int session, int left, int top,
|
|||
//x264_param_default_preset(&(xe->x264_params), "superfast", "zerolatency");
|
||||
x264_param_default_preset(&(xe->x264_params), "ultrafast", "zerolatency");
|
||||
xe->x264_params.i_threads = 1;
|
||||
xe->x264_params.i_width = width;
|
||||
xe->x264_params.i_height = height;
|
||||
xe->x264_params.i_width = (width + 15) & ~15;
|
||||
xe->x264_params.i_height = (height + 15) & ~15;
|
||||
xe->x264_params.i_fps_num = 24;
|
||||
xe->x264_params.i_fps_den = 1;
|
||||
//xe->x264_params.b_cabac = 1;
|
||||
|
|
Loading…
Reference in New Issue