Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vo_gpu_next: raise LUT file max size and report an error if exceeded
First of all, `lutdata` was passed to `pl_lut_parse_cube()` even if it was empty. This caused a bogus error message to be printed by the LUT parsing code in libplacebo. "[vo/gpu-next/libplacebo] Missing LUT size specification?" One of the reasons why `lutdata` can be empty is if the LUT file size exceeds the `max_size` limit passed to `stream_read_file()`. So in this commit, `lutdata` is checked first before getting passed to libplacebo, and a non-bogus error message is printed if it's empty. And secondly, the max size allowed is raised from the quite limiting value of 100MB to 1.5GiB. The new max matches the limit in LUT cache which is used to support up to 512x512x512 LUTs. Signed-off-by: Mohammad AlSaleh <[email protected]>
- Loading branch information