popen() doesn't like type "rb" on Linux, either.
[synfig.git] / synfig-core / trunk / src / modules / mod_ffmpeg / mptr_ffmpeg.cpp
index cd38376..bc4cc7b 100644 (file)
@@ -70,7 +70,7 @@ ffmpeg_mptr::seek_to(int frame)
 
                command=strprintf("ffmpeg -i \"%s\" -an -f image2pipe -vcodec ppm -\n",filename.c_str());
 
-               file=popen(command.c_str(),"rb");
+               file=popen(command.c_str(),POPEN_BINARY_READ_TYPE);
 
                if(!file)
                {