mirror of
https://github.com/qrtc/ffmpeg-dev-go.git
synced 2025-10-07 00:23:49 +08:00
2023-10-31 09:16:44 CST W44D2
This commit is contained in:
@@ -34,7 +34,7 @@ func AvutilLicense() string {
|
||||
return C.GoString(C.avutil_license())
|
||||
}
|
||||
|
||||
// Media Type
|
||||
// Media Type.
|
||||
type AVMediaType = C.enum_AVMediaType
|
||||
|
||||
const (
|
||||
@@ -99,6 +99,7 @@ func AvXIfNull[T any](p, x *T) *T {
|
||||
return x
|
||||
}
|
||||
|
||||
// AvStringIfNull
|
||||
func AvStringIfNull(p, x string) string {
|
||||
if len(p) != 0 {
|
||||
return p
|
||||
@@ -117,6 +118,8 @@ func AvIntListLength[U, V Integer](list *U, term V) uint32 {
|
||||
return (uint32)(C.av_int_list_length_for_size((C.uint)(elsize), (unsafe.Pointer)(list), (C.uint64_t)(term)))
|
||||
}
|
||||
|
||||
// Deprecated: No use.
|
||||
//
|
||||
// AvFopenUtf8
|
||||
func AvFopenUtf8(path, mode string) *FILE {
|
||||
pathPtr, pathFunc := StringCasting(path)
|
||||
|
Reference in New Issue
Block a user