Added getters for structs

This commit is contained in:
Alex Eidt 2022-04-16 10:45:14 -07:00
parent fb2c0b201d
commit 4fef48055a
6 changed files with 257 additions and 126 deletions

View file

@ -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
}
}