summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
18baf4d)
+#define POPEN_BINARY_READ_TYPE "rb"
#define POPEN_BINARY_WRITE_TYPE "wb"
#else
#define POPEN_BINARY_WRITE_TYPE "wb"
#else
+#define POPEN_BINARY_READ_TYPE "r"
#define POPEN_BINARY_WRITE_TYPE "w"
#endif
#define POPEN_BINARY_WRITE_TYPE "w"
#endif
command=strprintf("ffmpeg -i \"%s\" -an -f image2pipe -vcodec ppm -\n",filename.c_str());
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);
command=strprintf("convert \"%s\" -flatten ppm:-\n",filename.c_str());
command=strprintf("convert \"%s\" -flatten ppm:-\n",filename.c_str());
- file=popen(command.c_str(),"rb");
+ file=popen(command.c_str(),POPEN_BINARY_READ_TYPE);