[libvpx] VP8: disallow thread count changes
This commit is contained in:
parent
792eee44d0
commit
6f9e72c585
|
@ -1447,6 +1447,11 @@ void vp8_change_config(VP8_COMP *cpi, VP8_CONFIG *oxcf) {
|
||||||
last_h = cpi->oxcf.Height;
|
last_h = cpi->oxcf.Height;
|
||||||
prev_number_of_layers = cpi->oxcf.number_of_layers;
|
prev_number_of_layers = cpi->oxcf.number_of_layers;
|
||||||
|
|
||||||
|
if (cpi->initial_width) {
|
||||||
|
// TODO(https://crbug.com/1486441): Allow changing thread counts; the
|
||||||
|
// allocation is done once in vp8_create_compressor().
|
||||||
|
oxcf->multi_threaded = cpi->oxcf.multi_threaded;
|
||||||
|
}
|
||||||
cpi->oxcf = *oxcf;
|
cpi->oxcf = *oxcf;
|
||||||
|
|
||||||
switch (cpi->oxcf.Mode) {
|
switch (cpi->oxcf.Mode) {
|
||||||
|
|
Loading…
Reference in New Issue