more format workarounds in avinfo
This commit is contained in:
parent
59863f15c8
commit
2e2a391ae9
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ def avinfo(filename):
|
||||||
info = json.loads(info)
|
info = json.loads(info)
|
||||||
if 'video' in info:
|
if 'video' in info:
|
||||||
for v in info['video']:
|
for v in info['video']:
|
||||||
if not 'display_aspect_ratio' in v:
|
if not 'display_aspect_ratio' in v and 'width' in v:
|
||||||
v['display_aspect_ratio'] = '%d:%d' % (v['width'], v['height'])
|
v['display_aspect_ratio'] = '%d:%d' % (v['width'], v['height'])
|
||||||
v['pixel_aspect_ratio'] = '1:1'
|
v['pixel_aspect_ratio'] = '1:1'
|
||||||
return info
|
return info
|
||||||
|
|
Loading…
Reference in a new issue