xiph / vorbis-tools

Command-line tools for creating and playing Ogg Vorbis files.
GNU General Public License v2.0
73 stars 28 forks source link

Fix segfault when encoding from stdin on win32 #1

Closed bangun closed 8 years ago

bangun commented 8 years ago

NULL check before passing file name to utf8_decode()

Chocobo1 commented 8 years ago

:+1: (obviously) this fixes the crash

(foobar2000 log)
Conversion failed: The encoder has terminated prematurely with code -1073741819 (0xC0000005); please re-check parameters

when invoking from foobar2000 like this:

(pipe input)
-b 320 --ignorelength --quiet - -o %d
rillian commented 8 years ago

Rebased and merged in ef04f23e8eeb269bd98a2b0922b7e8183cdcd8ca.