wtvdec: fix integer overflow resulting in errors with large files