Skip to content

Commit

Permalink
fix ffmpeg unicode filename handling; fixes #221
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Böck committed Dec 4, 2016
1 parent b96135b commit cdb297c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Bug fixes:

* Fix tempo handling of multi-track MIDI files (#219)
* Fix error loading unicode filenames (#223)
* Fix ffmpeg unicode filename handling (#236)

Other changes:

Expand Down
2 changes: 0 additions & 2 deletions madmom/audio/ffmpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,6 @@ def _ffmpeg_call(infile, output, fmt='f32le', sample_rate=None, num_channels=1,
in_ac = str(int(infile.num_channels))
in_ar = str(int(infile.sample_rate))
infile = str("pipe:0")
elif isinstance(infile, str):
infile = infile.encode(sys.getfilesystemencoding())
else:
infile = str(infile)
# general options
Expand Down

0 comments on commit cdb297c

Please sign in to comment.