avformat/tta: fix crash with corrupted files