asfdec: avoid crash in the case when chunk_len is 0 or pkt_len is 0