Skip to content

Commit 90c1a01

Browse files
committed
Fix parsing stream info
- Fixed stream info for audio files with identifiers having parentheses which were not being parsed
1 parent c3428b7 commit 90c1a01

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/acxmaster/Master.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ private void ffmpeg(Boolean post, String[] ffmpeg) {
136136
String[] roughDurationParsed = audioInfo.getRoughDurationString().split(":");
137137
try {audioInfo.setRoughDuration((Float.parseFloat(roughDurationParsed[0])*3600)+(Float.parseFloat(roughDurationParsed[1])*60)+Float.parseFloat(roughDurationParsed[2]));} catch (Exception exception) {}
138138
}
139-
if (getStreamInfo && line.matches("^\\s+Stream\\s#\\d+:\\d+:\\sAudio:.+")) {
139+
if (getStreamInfo && line.matches("^\\s+Stream\\s#\\d+:\\d+.*:\\sAudio:.+")) {
140140
String[] elements = line.split(",");
141141
audioInfo.setCodec(elements[0].split(":")[3].split(" ")[1].trim());
142142
try {audioInfo.setSampleRate(Integer.parseInt(elements[1].split(" ")[1]));} catch (Exception exception) {}

0 commit comments

Comments
 (0)