Skip to content

Commit

Permalink
solving zero float division error
Browse files Browse the repository at this point in the history
  • Loading branch information
joelibaceta committed Dec 26, 2020
1 parent 884feea commit b089c5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion video_to_ascii/render_strategy/ascii_strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ def render(self, cap, output=None, with_audio=False):
v_width = cap.get(cv2.CAP_PROP_FRAME_WIDTH)
v_height = cap.get(cv2.CAP_PROP_FRAME_HEIGHT)
length = cap.get(cv2.CAP_PROP_FRAME_COUNT)
fps = cap.get(cv2.CAP_PROP_FPS)
fps = cap.get(cv2.CAP_PROP_FPS)
fps = fps or 30

if with_audio:
import pyaudio
Expand Down

0 comments on commit b089c5f

Please sign in to comment.