1212import com .google .common .io .ByteStreams ;
1313import com .google .common .io .CountingOutputStream ;
1414import com .google .common .net .HostAndPort ;
15-
1615import java .io .File ;
1716import java .io .IOException ;
1817import java .util .List ;
@@ -270,7 +269,6 @@ public void testIssue112() {
270269 ffExecutor .createJob (builder ).run ();
271270 }
272271
273-
274272 @ Test
275273 public void testIssue287 () throws InterruptedException , ExecutionException , IOException {
276274 FFmpegProbeResult in = ffprobe .probe (Samples .big_buck_bunny_720p_1mb );
@@ -279,18 +277,19 @@ public void testIssue287() throws InterruptedException, ExecutionException, IOEx
279277 String tempDir = System .getProperty ("java.io.tmpdir" );
280278
281279 FFmpegBuilder builder =
282- new FFmpegBuilder ()
283- .setInput (in )
284- .done ()
285- .overrideOutputFiles (true )
286- .addOutput (Samples .output_mp4 )
287- .setFormat ("mp4" )
288- .disableAudio ()
289- .setVideoCodec ("mpeg4" )
290- .setVideoFrameRate (FFmpeg .FPS_30 )
291- .setVideoResolution (320 , 240 )
292- .setTargetSize (1024 * 1024 )
293- .done ().setPassDirectory (tempDir );
280+ new FFmpegBuilder ()
281+ .setInput (in )
282+ .done ()
283+ .overrideOutputFiles (true )
284+ .addOutput (Samples .output_mp4 )
285+ .setFormat ("mp4" )
286+ .disableAudio ()
287+ .setVideoCodec ("mpeg4" )
288+ .setVideoFrameRate (FFmpeg .FPS_30 )
289+ .setVideoResolution (320 , 240 )
290+ .setTargetSize (1024 * 1024 )
291+ .done ()
292+ .setPassDirectory (tempDir );
294293
295294 FFmpegJob job = ffExecutor .createTwoPassJob (builder );
296295 runAndWait (job );
@@ -300,9 +299,8 @@ public void testIssue287() throws InterruptedException, ExecutionException, IOEx
300299 File passDir = new File (builder .getPassDirectory ());
301300 String passPrefix = builder .getPassPrefix ();
302301
303- File [] remainingFiles = passDir .listFiles ((dir , name ) ->
304- name .startsWith (passPrefix ) && name .contains (".log" )
305- );
302+ File [] remainingFiles =
303+ passDir .listFiles ((dir , name ) -> name .startsWith (passPrefix ) && name .contains (".log" ));
306304
307305 assertEquals (true , remainingFiles == null || remainingFiles .length == 0 );
308306 }
0 commit comments