From 29560e7aca3b18f6f735750f1297e7f01c4e278b Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 22 May 2015 15:30:42 +0200 Subject: [PATCH] keep video height if its < profile height --- pandora_client/extract.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pandora_client/extract.py b/pandora_client/extract.py index 0ab4ddd..6f1fbfe 100644 --- a/pandora_client/extract.py +++ b/pandora_client/extract.py @@ -164,6 +164,9 @@ def video_cmd(video, target, profile, info): audiochannels = 1 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']) if info['video'][0]['framerate'] == '0:0': fps = 25