Fix build for old libaom

This commit is contained in:
Kagami Hiiragi 2019-03-17 19:37:27 +03:00
parent d19ac0d2e1
commit c81987e7ab
1 changed files with 3 additions and 1 deletions

4
av1.c
View File

@ -111,10 +111,12 @@ static avif_error init_codec(aom_codec_iface_t *iface,
if (cfg->quality == 0) {
SET_CODEC_CONTROL(AV1E_SET_LOSSLESS, 1)
}
SET_CODEC_CONTROL(AV1E_SET_FRAME_PARALLEL_DECODING, 0)
SET_CODEC_CONTROL(AV1E_SET_TILE_COLUMNS, 1)
SET_CODEC_CONTROL(AV1E_SET_TILE_ROWS, 1)
#ifdef AOM_CTRL_AV1E_SET_ROW_MT
SET_CODEC_CONTROL(AV1E_SET_ROW_MT, 1)
SET_CODEC_CONTROL(AV1E_SET_FRAME_PARALLEL_DECODING, 0)
#endif
return AVIF_OK;
}