From: pabs Date: Thu, 6 Dec 2007 04:08:44 +0000 (+0000) Subject: Fix issue with r1181 and output filenames that begin with a dash. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=50e279d84452a7292f69b11600ca4cc5420ea229;p=synfig.git Fix issue with r1181 and output filenames that begin with a dash. git-svn-id: http://svn.voria.com/code@1182 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/modules/mod_ffmpeg/trgt_ffmpeg.cpp b/synfig-core/trunk/src/modules/mod_ffmpeg/trgt_ffmpeg.cpp index 251dc3a..9ab11e4 100644 --- a/synfig-core/trunk/src/modules/mod_ffmpeg/trgt_ffmpeg.cpp +++ b/synfig-core/trunk/src/modules/mod_ffmpeg/trgt_ffmpeg.cpp @@ -146,7 +146,7 @@ ffmpeg_trgt::init() synfig::error(_("Unable to open pipe to ffmpeg")); return false; } - execlp("ffmpeg", "ffmpeg", "-f", "image2pipe", "-vcodec", "ppm", "-an", "-r", strprintf("%f", desc.get_frame_rate()).c_str(), "-i", "pipe:", "-loop", "-hq", "-title", get_canvas()->get_name().c_str(), "-vcodec", "mpeg1video", "-y", filename.c_str(), (const char *)NULL); + execlp("ffmpeg", "ffmpeg", "-f", "image2pipe", "-vcodec", "ppm", "-an", "-r", strprintf("%f", desc.get_frame_rate()).c_str(), "-i", "pipe:", "-loop", "-hq", "-title", get_canvas()->get_name().c_str(), "-vcodec", "mpeg1video", "-y", "--", filename.c_str(), (const char *)NULL); // We should never reach here unless the exec failed synfig::error(_("Unable to open pipe to ffmpeg")); return false;