|
@@ -101,7 +101,7 @@ public class VideoToPCMTool {
|
|
|
it.sauronsoftware.jave.Encoder encoder = new Encoder();
|
|
|
m = encoder.getInfo(file);
|
|
|
long duration = m.getDuration();
|
|
|
- long secondDuration = duration / 1000;
|
|
|
+ long secondDuration = (long) Math.ceil(duration / 1000F);
|
|
|
return secondDuration;
|
|
|
} catch (Exception e) {
|
|
|
log.error("读取MP4文件时长出错", e);
|