mirror of
https://github.com/qrtc/ffmpeg-dev-go.git
synced 2025-10-05 07:37:20 +08:00
2023-11-18 13:50:46 CST W46D6
This commit is contained in:
@@ -628,9 +628,6 @@ func (frame *AVFrame) GetBufAddr() ***AVBufferRef {
|
||||
|
||||
// GetExtendedBuf gets `AVFrame.extended_buf` value.
|
||||
func (frame *AVFrame) GetExtendedBuf() []*AVBufferRef {
|
||||
if frame.extended_buf == nil {
|
||||
return nil
|
||||
}
|
||||
return unsafe.Slice((**AVBufferRef)(unsafe.Pointer(frame.extended_buf)),
|
||||
frame.nb_extended_buf)
|
||||
}
|
||||
@@ -662,9 +659,6 @@ func (frame *AVFrame) GetNbExtendedBufAddr() *int32 {
|
||||
|
||||
// GetSideData gets `AVFrame.side_data` value.
|
||||
func (frame *AVFrame) GetSideData() []*AVFrameSideData {
|
||||
if frame.side_data == nil {
|
||||
return nil
|
||||
}
|
||||
return unsafe.Slice((**AVFrameSideData)(unsafe.Pointer(frame.side_data)), frame.nb_side_data)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user