2023-11-16 19:54:40 CST W46D4

This commit is contained in:
aggresss
2023-11-16 19:54:40 +08:00
parent a59bc9b716
commit 70e80577a1
2 changed files with 3 additions and 2 deletions

View File

@@ -460,7 +460,7 @@ func (par *AVCodecParameters) GetSeekPrerollAddr() *int32 {
return (*int32)(&par.seek_preroll)
}
// GetChLayout gets `AVCodecContext.ch_layouts` value.
// GetChLayout gets `AVCodecContext.ch_layout` value.
func (par *AVCodecParameters) GetChLayout() AVChannelLayout {
return (AVChannelLayout)(par.ch_layout)
}
@@ -470,7 +470,7 @@ func (par *AVCodecParameters) SetChLayout(v AVChannelLayout) {
par.ch_layout = (C.struct_AVChannelLayout)(v)
}
// GetChLayoutAddr gets `AVCodecContext.ch_layouts` address.
// GetChLayoutAddr gets `AVCodecContext.ch_layout` address.
func (par *AVCodecParameters) GetChLayoutAddr() *AVChannelLayout {
return (*AVChannelLayout)(&par.ch_layout)
}

View File

@@ -525,6 +525,7 @@ func AvDynamicHdrVividAlloc(size *uintptr) *AVDynamicHDRVivid {
return (*AVDynamicHDRVivid)(C.av_dynamic_hdr_vivid_alloc((*C.size_t)(unsafe.Pointer(size))))
}
// AvDynamicHdrVividCreateSideData allocates a complete AVDynamicHDRVivid and add it to the frame.
func AvDynamicHdrVividCreateSideData(frame *AVFrame) *AVDynamicHDRVivid {
return (*AVDynamicHDRVivid)(C.av_dynamic_hdr_vivid_create_side_data((*C.struct_AVFrame)(frame)))
}