fix for odd width, height

This commit is contained in:
Jay Sorg 2024-05-19 22:20:33 -07:00
parent 112a534f4c
commit 485e64ee76
1 changed files with 2 additions and 2 deletions

View File

@ -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;