asfdec: fix assert failure on invalid files