From: pabs Date: Wed, 26 Dec 2007 23:16:57 +0000 (+0000) Subject: Fix issue in unused mod_ffmpeg importer security fixes; read from the ffmpeg output... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=792ed706efeef84c5b82abf982078daad15f5d6c;p=synfig.git Fix issue in unused mod_ffmpeg importer security fixes; read from the ffmpeg output pipe, don't write to it. git-svn-id: http://svn.voria.com/code@1231 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/modules/mod_ffmpeg/mptr_ffmpeg.cpp b/synfig-core/trunk/src/modules/mod_ffmpeg/mptr_ffmpeg.cpp index f05b2d4..f1f7e0b 100644 --- a/synfig-core/trunk/src/modules/mod_ffmpeg/mptr_ffmpeg.cpp +++ b/synfig-core/trunk/src/modules/mod_ffmpeg/mptr_ffmpeg.cpp @@ -104,8 +104,8 @@ ffmpeg_mptr::seek_to(int frame) // Parent process // Close pipeout, not needed close(p[1]); - // Save pipeout to file handle, will write to it later - file = fdopen(p[0], "wb"); + // Save pipein to file handle, will read from it later + file = fdopen(p[0], "rb"); } if(!file)