From 2101be5158da0b7b0c6beac6c1026d3fa1157dfa Mon Sep 17 00:00:00 2001 From: Adrian Shum Date: Tue, 11 Oct 2022 17:04:45 +0800 Subject: [PATCH] refactor: imagor seek stream implementation --- ffmpeg/ffmpeg.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/ffmpeg/ffmpeg.go b/ffmpeg/ffmpeg.go index 2408ce9..f05ba01 100644 --- a/ffmpeg/ffmpeg.go +++ b/ffmpeg/ffmpeg.go @@ -144,20 +144,6 @@ func duration(av *AVContext) { } } -func fullDuration(av *AVContext) error { - if av.durationInFormat { - return nil - } - newDuration := time.Duration(C.find_duration(av.formatContext)) - if newDuration < 0 { - return avError(newDuration) - } - if newDuration > av.duration { - av.duration = newDuration - } - return nil -} - func findStreams(av *AVContext) error { var orientation C.int err := C.find_streams(av.formatContext, &av.stream, &orientation)