From f1fea0f9392948061f05a8729e997de65448b8f3 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 7 Jan 2017 12:30:28 +0100 Subject: [PATCH] rotation migth be negative, fixes #2984 --- ox/file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ox/file.py b/ox/file.py index 012da01..8fc2a3a 100644 --- a/ox/file.py +++ b/ox/file.py @@ -296,7 +296,7 @@ def ffprobe(filename): pass # print s for v in info['video']: - if 'rotate' in info.get('metadata', {}) and int(info['metadata']['rotate']) in (90, 180): + if 'rotate' in info.get('metadata', {}) and int(info['metadata']['rotate']) in (-180, -90, 90, 180): v['width'], v['height'] = v['height'], v['width'] k = 'display_aspect_ratio' if k not in v and 'width' in v \