Prevent encoder crash caused by row tile dependencies
authorYunqing Wang <yunqingwang@google.com>
Tue, 22 Mar 2016 17:54:43 +0000 (10:54 -0700)
committerYunqing Wang <yunqingwang@google.com>
Tue, 22 Mar 2016 23:15:12 +0000 (16:15 -0700)
commitdc5f7712f234af8b7e1123610f2569bf54c65684
treec50ad907442a98f9f630328bf87650a84ab2cb73
parentbfc2a7e3a04908e5d82f656bf1723ad4eddff986
Prevent encoder crash caused by row tile dependencies

In multi-thread case, the encoder may crash if using encoder option
tile-rows > 0. To prevent that, force tile-rows=0 in this situation.
This is a workaround for WebM issue 1095:
https://bugs.chromium.org/p/webm/issues/detail?id=1095

The further fix can be done by adding synchronizations after a tile
row is encoded. But this will hurt multi-threaded encoder performance.
So, it is recommended to use tile-rows=0 while encoding with threads
> 1.

Change-Id: I656cbcc200f8d0410d09530e7981ad8f32fe7bc9
vp9/vp9_cx_iface.c
vpxenc.c