]> granicus.if.org Git - libx264/commitdiff
Fix XAVC with sliced-threads
authorAnton Mitrofanov <BugMaster@narod.ru>
Mon, 24 Dec 2018 16:37:45 +0000 (19:37 +0300)
committerHenrik Gramner <henrik@gramner.com>
Sun, 3 Mar 2019 22:52:42 +0000 (23:52 +0100)
encoder/encoder.c

index 758defc482e99d6da8d134787a81c77aa7137c78..d3df5c137d0c0caf1a2a40362891ba81e91882a0 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