Fix the handle of API changes in x265 4.0
According to VLC[1], the latest arg of x265_encoder_encode
should be an array of the pointer of x265_picture
, and its size should be MAX_SCALABLE_LAYERS
instead of 1
.
The currently patch also breaks build on riscv64, maybe also other platforms.
Reported-by: https://archriscv.felixc.at/.status/log.htm?url=logs/fceux/fceux-2.6.6-3.log
Edited by Cryolitia