Fix XAVC with sliced-threads
authorAnton Mitrofanov <BugMaster@narod.ru>
Mon, 24 Dec 2018 16:37:45 +0000 (19:37 +0300)
committerAnton Mitrofanov <BugMaster@narod.ru>
Mon, 4 Feb 2019 19:13:52 +0000 (22:13 +0300)
encoder/encoder.c

index 14312c2..467ceb1 100644 (file)
@@ -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