Skip to content

Commit

Permalink
Version 2.1.1 (#31)
Browse files Browse the repository at this point in the history
* Fixing parse_hdr_details bug (thanks to Jan Temešinko and schlotkins)
  • Loading branch information
cdgriffith authored Jul 14, 2020
1 parent 1faeedd commit 3018f02
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
---------

Version 2.1.1
~~~~~~~~~~~~~

* Fixing parse_hdr_details bug (thanks to Jan Temešinko and schlotkins)

Version 2.1.0
~~~~~~~~~~~~~

Expand Down
6 changes: 5 additions & 1 deletion flix/flix.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,11 @@ def parse_hdr_details(self, video_source, video_track=0):
)

result = run(command, shell=True, stdout=PIPE, stderr=PIPE)
data = Box.from_json(result.stdout.decode("utf-8"), default_box=True, default_box_attr=None)
try:
data = Box.from_json(result.stdout.decode("utf-8"), default_box=True, default_box_attr=None)
except BoxError:
# No details to parse
return
if "frames" not in data or not len(data.frames):
return
data = data.frames[0]
Expand Down
2 changes: 1 addition & 1 deletion flix/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__version__ = "2.1.0"
__version__ = "2.1.1"
__author__ = "Chris Griffith"

0 comments on commit 3018f02

Please sign in to comment.