keep video height if its < profile height

This commit is contained in:
j 2015-05-22 15:30:42 +02:00
parent fd625da847
commit 29560e7aca

View file

@ -164,6 +164,9 @@ def video_cmd(video, target, profile, info):
audiochannels = 1 audiochannels = 1
if info['video'] and 'display_aspect_ratio' in info['video'][0]: if info['video'] and 'display_aspect_ratio' in info['video'][0]:
# dont make video bigger
height = min(height, info['video'][0]['height'])
dar = AspectRatio(info['video'][0]['display_aspect_ratio']) dar = AspectRatio(info['video'][0]['display_aspect_ratio'])
if info['video'][0]['framerate'] == '0:0': if info['video'][0]['framerate'] == '0:0':
fps = 25 fps = 25