avcodec/snowdec: Fix integer overflow before htaps check