mirror of
https://github.com/3d0c/gmf
synced 2025-12-24 10:40:59 +08:00
wip
This commit is contained in:
@@ -272,7 +272,3 @@ func (f *Frame) GetRawFrame() *C.struct_AVFrame {
|
||||
func (f *Frame) Time(timebase AVRational) int {
|
||||
return int(float64(timebase.AVR().Num) / float64(timebase.AVR().Den) * float64(f.Pts()))
|
||||
}
|
||||
|
||||
func (f *Frame) GetRawAudioData(plane int) []byte {
|
||||
return C.GoBytes(unsafe.Pointer(f.avFrame.data[plane]), C.int(f.LineSize(plane)))
|
||||
}
|
||||
|
||||
@@ -272,7 +272,3 @@ func (f *Frame) GetRawFrame() *C.struct_AVFrame {
|
||||
func (f *Frame) Time(timebase AVRational) int {
|
||||
return int(float64(timebase.AVR().Num) / float64(timebase.AVR().Den) * float64(f.Pts()))
|
||||
}
|
||||
|
||||
func (f *Frame) GetRawAudioData(plane int) []byte {
|
||||
return C.GoBytes(unsafe.Pointer(f.avFrame.data[plane]), C.int(f.LineSize(plane)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user