lavc/tta: Use a safer check for encrypted streams