Skip to content

Commit

Permalink
fix for odd width, height
Browse files Browse the repository at this point in the history
  • Loading branch information
jsorg71 committed May 20, 2024
1 parent 127e858 commit dcf764a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xrdp/xrdp_encoder_x264.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dcf764a

Please sign in to comment.