refactor: imagor seek stream implementation
This commit is contained in:
parent
343d4903a1
commit
2101be5158
1 changed files with 0 additions and 14 deletions
|
|
@ -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 {
|
func findStreams(av *AVContext) error {
|
||||||
var orientation C.int
|
var orientation C.int
|
||||||
err := C.find_streams(av.formatContext, &av.stream, &orientation)
|
err := C.find_streams(av.formatContext, &av.stream, &orientation)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue