diff --git a/m3u8/model.py b/m3u8/model.py index c855469f..bb339989 100644 --- a/m3u8/model.py +++ b/m3u8/model.py @@ -959,7 +959,10 @@ def __init__(self, uri, stream_info, media, base_uri): if resolution is not None: resolution = resolution.strip('"') values = resolution.split("x") - resolution_pair = (int(values[0]), int(values[1])) + resolution_pair = ( + int(round(float(values[0]))), + int(round(float(values[1]))), + ) else: resolution_pair = None