Fix issue in unused mod_ffmpeg importer security fixes; read from the ffmpeg output...
authorpabs <pabs@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 26 Dec 2007 23:16:57 +0000 (23:16 +0000)
committerpabs <pabs@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 26 Dec 2007 23:16:57 +0000 (23:16 +0000)
git-svn-id: http://svn.voria.com/code@1231 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/modules/mod_ffmpeg/mptr_ffmpeg.cpp

index f05b2d4..f1f7e0b 100644 (file)
@@ -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)