From fd1ee4e81447f3c2531fa163ba696d1bfd9b6318 Mon Sep 17 00:00:00 2001 From: Naveen Dendi <44518110+ndendi@users.noreply.github.com> Date: Wed, 19 Aug 2020 09:33:06 -0700 Subject: [PATCH] Do not swap height and width when rotation is 0 https://github.com/streamio/streamio-ffmpeg/issues/207 --- lib/ffmpeg/movie.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ffmpeg/movie.rb b/lib/ffmpeg/movie.rb index 0e148bb3..85bb5043 100644 --- a/lib/ffmpeg/movie.rb +++ b/lib/ffmpeg/movie.rb @@ -156,11 +156,11 @@ def local? end def width - rotation.nil? || rotation == 180 ? @width : @height; + rotation.nil? || rotation == 0 || rotation == 180 ? @width : @height; end def height - rotation.nil? || rotation == 180 ? @height : @width; + rotation.nil? || rotation == 0 || rotation == 180 ? @height : @width; end def resolution