Detect .webvtt as WebVTT files

Some subtitle files use .webvtt instead of .vtt, probably because
ffmpeg uses -f webvtt when converting from some other format.

Change-Id: If88e8d2b90e5dea6751409568d5191e923dec4aa
This commit is contained in:
Joey Parrish 2016-09-28 14:53:42 -07:00
parent 5edd290694
commit 275e60e5a9
1 changed files with 3 additions and 0 deletions

View File

@ -1758,6 +1758,9 @@ MediaContainerName DetermineContainerFromFileName(
} else if (base::EndsWith(file_name, ".vtt",
base::CompareCase::INSENSITIVE_ASCII)) {
return CONTAINER_WEBVTT;
} else if (base::EndsWith(file_name, ".webvtt",
base::CompareCase::INSENSITIVE_ASCII)) {
return CONTAINER_WEBVTT;
} else if (base::EndsWith(file_name, ".ttml",
base::CompareCase::INSENSITIVE_ASCII)) {
return CONTAINER_TTML;