Commit 4d8d2e4f authored by jehan's avatar jehan

make sure jpeg writter open file in binary mode for windows

parent 9c1550ab
......@@ -61,7 +61,7 @@ static int take_snapshot(MSFilter *f, void *arg){
fclose(s->file);
s->file=NULL;
}
s->file=fopen(filename,"w");
s->file=fopen(filename,"wb");
if (s->file==NULL){
ms_error("Could not open %s",filename);
return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment