mirror of
https://github.com/qrtc/ffmpeg-dev-go.git
synced 2025-10-05 15:47:33 +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
|
||||
|
Reference in New Issue
Block a user