Skip to content
This repository was archived by the owner on Sep 29, 2023. It is now read-only.

Commit d1fa30c

Browse files
authored
fix bug for working progress with audio files
audio files doesn't have frame in output
1 parent 0fa8397 commit d1fa30c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ffmpeg/ffmpeg.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ func (t *Transcoder) progress(stream io.ReadCloser, out chan transcoder.Progress
262262
Progress := new(Progress)
263263
line := scanner.Text()
264264

265-
if strings.Contains(line, "frame=") && strings.Contains(line, "time=") && strings.Contains(line, "bitrate=") {
265+
if strings.Contains(line, "time=") && strings.Contains(line, "bitrate=") {
266266
var re = regexp.MustCompile(`=\s+`)
267267
st := re.ReplaceAllString(line, `=`)
268268

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy