mirror of
https://github.com/datarhei/core.git
synced 2025-09-26 20:11:29 +08:00
Fix stale detection with progress patch
This commit is contained in:
@@ -379,13 +379,12 @@ func (p *parser) Parse(line string) uint64 {
|
||||
}
|
||||
|
||||
// Calculate if any of the processed frames staled.
|
||||
// If one number of frames in an output is the same as
|
||||
// before, then pFrames becomes 0.
|
||||
var pFrames uint64 = 0
|
||||
|
||||
pFrames = p.stats.main.diff.frame
|
||||
// If one number of frames in an output is the same as before, then pFrames becomes 0.
|
||||
pFrames := p.stats.main.diff.frame
|
||||
|
||||
if isFFmpegProgress {
|
||||
// Only consider the outputs
|
||||
pFrames = 1
|
||||
for i := range p.stats.output {
|
||||
pFrames *= p.stats.output[i].diff.frame
|
||||
}
|
||||
|
Reference in New Issue
Block a user