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:
parent
5edd290694
commit
275e60e5a9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue