We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2c67651 + 63cca29 commit cf92b10Copy full SHA for cf92b10
video.go
@@ -168,6 +168,9 @@ func (video *Video) addVideoData(data map[string]string) {
168
if height, ok := data["height"]; ok {
169
video.height = int(parse(height))
170
}
171
+ if rotation, ok := data["tag:rotate"]; ok && (rotation == "90" || rotation == "270") {
172
+ video.width, video.height = video.height, video.width
173
+ }
174
if duration, ok := data["duration"]; ok {
175
video.duration = float64(parse(duration))
176
0 commit comments