This commit is contained in:
alex
2019-05-31 15:10:47 +03:00
parent 7d5a2addb7
commit bab751d13f
2 changed files with 0 additions and 8 deletions

View File

@@ -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)))
}

View File

@@ -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)))
}