Don't copy thread data for the main thread.
Change-Id: I6adee6704cacfeae0ed0b217a91095457d1be74a
This commit is contained in:
parent
56cc37c642
commit
71d5a59c6d
@ -119,10 +119,14 @@ void vp9_encode_tiles_mt(VP9_COMP *cpi) {
|
|||||||
thread_data = (EncWorkerData*)worker->data1;
|
thread_data = (EncWorkerData*)worker->data1;
|
||||||
|
|
||||||
// Before encoding a frame, copy the thread data from cpi.
|
// Before encoding a frame, copy the thread data from cpi.
|
||||||
thread_data->td->mb = cpi->td.mb;
|
if (thread_data->td != &cpi->td) {
|
||||||
thread_data->td->rd_counts = cpi->td.rd_counts;
|
thread_data->td->mb = cpi->td.mb;
|
||||||
vpx_memcpy(thread_data->td->counts, &cpi->common.counts,
|
thread_data->td->rd_counts = cpi->td.rd_counts;
|
||||||
sizeof(cpi->common.counts));
|
}
|
||||||
|
if (thread_data->td->counts != &cpi->common.counts) {
|
||||||
|
vpx_memcpy(thread_data->td->counts, &cpi->common.counts,
|
||||||
|
sizeof(cpi->common.counts));
|
||||||
|
}
|
||||||
|
|
||||||
// Handle use_nonrd_pick_mode case.
|
// Handle use_nonrd_pick_mode case.
|
||||||
if (cpi->sf.use_nonrd_pick_mode) {
|
if (cpi->sf.use_nonrd_pick_mode) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user