From baec9c4ea67e2f2c6a11f334bbc20d82b30bc4a3 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 6 Jul 2023 17:07:11 +0530 Subject: [PATCH] 180/-180 rotation does not change width/height --- ox/file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ox/file.py b/ox/file.py index d60fb3c..01623ca 100644 --- a/ox/file.py +++ b/ox/file.py @@ -276,7 +276,7 @@ def ffprobe(filename): # print s for v in info['video']: k = 'display_aspect_ratio' - if 'rotate' in info.get('metadata', {}) and int(info['metadata']['rotate']) in (-180, -90, 90, 180): + if 'rotate' in info.get('metadata', {}) and int(info['metadata']['rotate']) in (-90, 90): v['width'], v['height'] = v['height'], v['width'] if k in v: v[k] = ':'.join(reversed(v[k].split(':')))