Advertisement
Guest User

Untitled

a guest
Dec 19th, 2017
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. --- encoder.c 2017-09-20 10:57:41.280806558 -0500
  2. +++ encoder.c-new2 2017-09-20 11:05:03.432834175 -0500
  3. @@ -543,10 +543,10 @@
  4. h->param.i_threads = x264_cpu_num_processors() * (h->param.b_sliced_threads?2:3)/2;
  5. /* Avoid too many threads as they don't improve performance and
  6. * complicate VBV. Capped at an arbitrary 2 rows per thread. */
  7. - int max_threads = X264_MAX( 1, (h->param.i_height+15)/16 / 2 );
  8. + int max_threads = X264_MAX( 1, ( 16 );
  9. h->param.i_threads = X264_MIN( h->param.i_threads, max_threads );
  10. }
  11. - int max_sliced_threads = X264_MAX( 1, (h->param.i_height+15)/16 / 4 );
  12. + int max_sliced_threads = X264_MAX( 1, (h->param.i_height+15)/16 / 8 );
  13. if( h->param.i_threads > 1 )
  14. {
  15. #if !HAVE_THREAD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement