2023-10-24 21:24:55 CST W43D2

This commit is contained in:
aggresss
2023-10-24 21:24:55 +08:00
parent e163918619
commit 4329c27b55
47 changed files with 3577 additions and 165 deletions

View File

@@ -35,12 +35,12 @@ func (hwc *AVCodecDescriptor) GetProps() int32 {
// Custom: GetMimeTypes gets `AVCodecDescriptor.mime_types` value.
func (hwc *AVCodecDescriptor) GetMimeTypes() (v []string) {
return TruncStringSlice(hwc.mime_types)
return SliceTruncString(hwc.mime_types)
}
// Custom: GetProfiles gets `AVCodecDescriptor.profiles` value.
func (hwc *AVCodecDescriptor) GetProfiles() []AVProfile {
return TruncSlice((*AVProfile)(hwc.profiles), func(ap AVProfile) bool {
return SliceTrunc((*AVProfile)(hwc.profiles), func(ap AVProfile) bool {
return ap.GetProfile() == FF_PROFILE_UNKNOWN
})
}