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

Improve detection of corrupt videos via ffprobe

parent f112be76
No related branches found
No related tags found
No related merge requests found
......@@ -281,6 +281,9 @@ module BigBlueButton
info[:width] = info[:video][:width].to_i
info[:height] = info[:video][:height].to_i
return {} if info[:width] == 0 or info[:height] == 0
return {} if info[:video][:display_aspect_ratio] == '0:0'
info[:aspect_ratio] = info[:video][:display_aspect_ratio].to_r
if info[:aspect_ratio] == 0
info[:aspect_ratio] = Rational(info[:width], info[:height])
......
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