From 5db0a49219fea74074ff263a52a7163c47a83c97 Mon Sep 17 00:00:00 2001 From: wang zhengbo Date: Wed, 26 Sep 2018 10:22:09 +0800 Subject: [PATCH] Append line separator '\n' to output message because original ffmpeg output has line separator. --- android-ffmpeg/src/main/java/nl/bravobit/ffmpeg/Util.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android-ffmpeg/src/main/java/nl/bravobit/ffmpeg/Util.java b/android-ffmpeg/src/main/java/nl/bravobit/ffmpeg/Util.java index 2f6a20d..742f8c5 100644 --- a/android-ffmpeg/src/main/java/nl/bravobit/ffmpeg/Util.java +++ b/android-ffmpeg/src/main/java/nl/bravobit/ffmpeg/Util.java @@ -21,7 +21,7 @@ static String convertInputStreamToString(InputStream inputStream) { String str; StringBuilder sb = new StringBuilder(); while ((str = r.readLine()) != null) { - sb.append(str); + sb.append(str).append('\n'); } return sb.toString(); } catch (IOException e) {