Did add a check if the subtitle type is bitmap or ass (to prevent crashes for non bitmap  subtitle streams)