Skip to content
Snippets Groups Projects
Commit 7da493e2 authored by Calvin Walton's avatar Calvin Walton
Browse files

RaP: Convert aspect ratio numbers to int before checking value

The checks for 0 numerator or denominator were failing due to
type mismatch
parent 67758e1c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment