Added getters for structs
This commit is contained in:
parent
fb2c0b201d
commit
4fef48055a
6 changed files with 257 additions and 126 deletions
4
utils.go
4
utils.go
|
@ -116,8 +116,8 @@ func addVideoData(data map[string]string, video *Video) {
|
|||
if codec, ok := data["codec_name"]; ok {
|
||||
video.codec = codec
|
||||
}
|
||||
if pix_fmt, ok := data["pix_fmt"]; ok {
|
||||
video.pix_fmt = pix_fmt
|
||||
if pixfmt, ok := data["pix_fmt"]; ok {
|
||||
video.pixfmt = pixfmt
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue