Skip to content

Commit

Permalink
Disable Subtitles when Output Container is WebM
Browse files Browse the repository at this point in the history
  • Loading branch information
Alkl58 committed Oct 20, 2022
1 parent fc67f30 commit a99d0d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion NotEnoughAV1Encodes/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,8 @@ private void ButtonSetDestination_Click(object sender, RoutedEventArgs e)
videoDB.OutputFileName = Path.GetFileName(videoDB.OutputPath);
try
{
if (Path.GetExtension(videoDB.OutputPath).ToLower() == ".mp4")
if (Path.GetExtension(videoDB.OutputPath).ToLower() == ".mp4" ||
Path.GetExtension(videoDB.OutputPath).ToLower() == ".webm")
{
// Disable Subtitles if Output is MP4
foreach (Subtitle.SubtitleTracks subtitleTracks in ListBoxSubtitleTracks.Items)
Expand Down

0 comments on commit a99d0d5

Please sign in to comment.