rotation migth be negative, fixes #2984

This commit is contained in:
j 2017-01-07 12:30:28 +01:00
parent 354784a93b
commit f1fea0f939

View file

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