From: Anton Mitrofanov Date: Mon, 24 Dec 2018 16:37:45 +0000 (+0300) Subject: Fix XAVC with sliced-threads X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6172da4d77a574c831ed4710a10d945ea128528e;p=libx264 Fix XAVC with sliced-threads --- diff --git a/encoder/encoder.c b/encoder/encoder.c index 758defc4..d3df5c13 100644 --- a/encoder/encoder.c +++ b/encoder/encoder.c @@ -821,6 +821,8 @@ static int validate_parameters( x264_t *h, int b_open ) if( h->param.i_avcintra_flavor == X264_AVCINTRA_FLAVOR_SONY ) { h->param.i_slice_count = 8; + if( h->param.b_sliced_threads ) + h->param.i_threads = h->param.i_slice_count; /* Sony XAVC unlike AVC-Intra doesn't seem to have a QP floor */ } else