From bfe803bda3685c1c8005f38b6e90e1665d4dde7f Mon Sep 17 00:00:00 2001 From: Attila Nagy Date: Fri, 18 Mar 2011 10:44:08 +0200 Subject: Fix multithreaded encoding for 1 MB wide frame Thread synchronization was not correct when frame width was 1 MB. Number of allocated encoding threads is limited by the sync_range. There is no point having more because each thread lags sync_range MBs behind the thread processing the row above. http://code.google.com/p/webm/issues/detail?id=302 Change-Id: Icaf67a883beecc5ebf2f11e9be47b6997fdf6f26 --- vp8/encoder/encodeframe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vp8/encoder/encodeframe.c') diff --git a/vp8/encoder/encodeframe.c b/vp8/encoder/encodeframe.c index 0613b9070..fa01d20a0 100644 --- a/vp8/encoder/encodeframe.c +++ b/vp8/encoder/encodeframe.c @@ -808,7 +808,7 @@ void vp8_encode_frame(VP8_COMP *cpi) vp8cx_init_mbrthread_data(cpi, x, cpi->mb_row_ei, 1, cpi->encoding_thread_count); for (i = 0; i < cm->mb_rows; i++) - cpi->mt_current_mb_col[i] = 0; + cpi->mt_current_mb_col[i] = -1; for (i = 0; i < cpi->encoding_thread_count; i++) { -- cgit v1.2.3