@@ -209,11 +209,11 @@ private void btnQueueAdd_Click(object sender, EventArgs e)
209209 {
210210 OpenFileDialog GetFiles = new OpenFileDialog ( ) ;
211211 GetFiles . Title = Language . IMessage . OpenFile ;
212- GetFiles . Filter = "Known Video files|*.mkv;*.mp4;*.m4v;*.flv;*.webm;*.avi;*.divx;*.wmv;*.mpg;*.mpeg;*.mpv;*.m1v;*.dat;*.vob;*.emp;*.emm|"
213- + "MKV Container|*.mkv|"
214- + "MP4 Container |*.mp4;*.m4v|"
215- + "Flash Video Container |*.flv|"
216- + "The WebM Project (container) |*.webm|"
212+ GetFiles . Filter = "Supported video files|*.mkv;*.mp4;*.m4v;*.flv;*.webm;*.avi;*.divx;*.wmv;*.mpg;*.mpeg;*.mpv;*.m1v;*.dat;*.vob;*.emp;*.emm|"
213+ + "Matroska Multimedia Container|*.mkv|"
214+ + "MPEG-4 Part 14 (MP4) |*.mp4;*.m4v|"
215+ + "Adobe Flash Video|*.flv|"
216+ + "The WebM Project|*.webm|"
217217 + "Audio Video Interleaved|*.avi;*.divx|"
218218 + "Windows Media Video|*.wmv|"
219219 + "Moving Picture Experts Group|*.mpg;*.mpeg;*.mpv;*.m1v;*.dat;*.vob|"
@@ -1224,16 +1224,16 @@ private void BGThread_DoWork(object sender, DoWorkEventArgs e)
12241224 // Decode audio and process multiple streams
12251225 if ( ! BGThread . CancellationPending )
12261226 {
1227- // Set title
1228- FormTitle ( String . Format ( "Queue {0} of {1}: Decoding all audio..." , x + 1 , queue . Length ) ) ;
1229- InvokeLog ( Log . Info , "Now decoding audio~ Please Wait..." ) ;
1230-
12311227 if ( audio . Count >= 1 )
12321228 {
1229+ // Set title
1230+ FormTitle ( String . Format ( "Queue {0} of {1}: Decoding all audio..." , x + 1 , queue . Length ) ) ;
1231+ InvokeLog ( Log . Info , "Now decoding audio~ Please Wait..." ) ;
1232+
12331233 // Capture MediaInfo Audio ID and assigned to FFmpeg Map ID
12341234 int [ ] AudioMapID = new int [ 1024 ] ;
12351235
1236- if ( video [ 0 ] . Id == 0 || audio [ 0 ] . Id == 0 || audio [ 0 ] . Id == 1 )
1236+ if ( video [ 0 ] . Id == 0 || audio [ 0 ] . Id == 1 || audio [ 0 ] . Id == 0 )
12371237 for ( int i = 0 ; i < audio . Count ; i ++ )
12381238 AudioMapID [ i ] = audio [ i ] . Id ;
12391239 else
@@ -1320,7 +1320,7 @@ private void BGThread_DoWork(object sender, DoWorkEventArgs e)
13201320 if ( ! BGThread . CancellationPending )
13211321 {
13221322 // Make sure not pass-through mode
1323- if ( AudFormat != 0 )
1323+ if ( audio . Count >= 1 && AudFormat != 0 )
13241324 {
13251325 // Set title
13261326 FormTitle ( String . Format ( "Queue {0} of {1}: Encoding all audio..." , x + 1 , queue . Length ) ) ;
@@ -2114,7 +2114,7 @@ private void pictDonate_Click(object sender, EventArgs e)
21142114
21152115 private void btnAdvanceHelp_Click ( object sender , EventArgs e )
21162116 {
2117- System . Diagnostics . Process . Start ( "http://x265.readthedocs.org/en/default/" ) ;
2117+ System . Diagnostics . Process . Start ( "http://x265.readthedocs.org/en/default/cli.html " ) ;
21182118 }
21192119 }
21202120}
0 commit comments