Fix stale detection with progress patch

This commit is contained in:
Ingo Oppermann
2022-10-13 12:20:26 +02:00
parent 05a2268662
commit 3da25c0d91

View File

@@ -379,13 +379,12 @@ func (p *parser) Parse(line string) uint64 {
} }
// Calculate if any of the processed frames staled. // Calculate if any of the processed frames staled.
// If one number of frames in an output is the same as // If one number of frames in an output is the same as before, then pFrames becomes 0.
// before, then pFrames becomes 0. pFrames := p.stats.main.diff.frame
var pFrames uint64 = 0
pFrames = p.stats.main.diff.frame
if isFFmpegProgress { if isFFmpegProgress {
// Only consider the outputs
pFrames = 1
for i := range p.stats.output { for i := range p.stats.output {
pFrames *= p.stats.output[i].diff.frame pFrames *= p.stats.output[i].diff.frame
} }