From 7da493e23fe164e781132343f50589e9567451ae Mon Sep 17 00:00:00 2001 From: Calvin Walton <calvin.walton@kepstin.ca> Date: Fri, 22 Jun 2018 10:06:34 -0400 Subject: [PATCH] RaP: Convert aspect ratio numbers to int before checking value The checks for 0 numerator or denominator were failing due to type mismatch --- record-and-playback/core/lib/recordandplayback/edl/video.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/record-and-playback/core/lib/recordandplayback/edl/video.rb b/record-and-playback/core/lib/recordandplayback/edl/video.rb index 11386fe476..57989c3b64 100644 --- a/record-and-playback/core/lib/recordandplayback/edl/video.rb +++ b/record-and-playback/core/lib/recordandplayback/edl/video.rb @@ -293,6 +293,8 @@ module BigBlueButton if !info[:video][:sample_aspect_ratio].nil? and info[:video][:sample_aspect_ratio] != 'N/A' aspect_x, aspect_y = info[:video][:sample_aspect_ratio].split(':') + aspect_x = aspect_x.to_i + aspect_y = aspect_y.to_i if aspect_x != 0 and aspect_y != 0 info[:sample_aspect_ratio] = Rational(aspect_x, aspect_y) end -- GitLab