diff --git a/stream.py b/stream.py
index 5314315..458b15d 100755
--- a/stream.py
+++ b/stream.py
@@ -75,7 +75,7 @@ if icecast_server is not None and stream_server is not None:
template_html = None
template_js = None
-template_embed = tornado.template.Template('')
+template_embed = tornado.template.Template('')
videojs_version = None
castjs_version = None
@@ -197,13 +197,13 @@ class MainHandler(tornado.web.RequestHandler):
try:
if isinstance(width_str, str):
width_new = int(width_str)
- if width_new > 16:
+ if width_new >= 16:
width = width_new
else:
raise ValueError("invalid width")
if isinstance(height_str, str):
height_new = int(height_str)
- if height_new > 9:
+ if height_new >= 9:
height = height_new
else:
raise ValueError("invalid height")