Skip to content

Commit

Permalink
Add ‘ignore’ for UTF8 decoding to avoid error on non-UTF8 characters (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisapplegate committed Aug 6, 2020
1 parent b65d293 commit 953357d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed <!-- for any bug fixes -->
- `OSError: MoviePy error: failed to read the first frame of video file...` would occasionally occur for no reason [#1220]
- Warnings are no longer being supressed by MoviePy [#1191]
- Fixed `UnicodeDecodeError` crash when file metadata contained non-UTF8 characters [#959]


## [v2.0.0.dev1](https://github.com/zulko/moviepy/tree/v2.0.0.dev1) (2020-06-04)
Expand Down
2 changes: 1 addition & 1 deletion moviepy/video/io/ffmpeg_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def ffmpeg_parse_infos(

proc = sp.Popen(cmd, **popen_params)
(output, error) = proc.communicate()
infos = error.decode("utf8")
infos = error.decode("utf8", errors="ignore")

proc.terminate()
del proc
Expand Down

0 comments on commit 953357d

Please sign in to comment.