fate: dont freopen() stdout

it doesnt work and breaks most BSDs

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-05-31 02:56:56 +02:00
parent 0dfcd7e7e3
commit 3b275ce374
2 changed files with 4 additions and 4 deletions

View File

@ -165,8 +165,8 @@ int main(int argc, char **argv)
return 1;
}
if (argc < 3)
err_if(!freopen(NULL, "wb", stdout));
// if (argc < 3)
// err_if(!freopen(NULL, "wb", stdout));
w = DEFAULT_WIDTH;
h = DEFAULT_HEIGHT;

View File

@ -152,8 +152,8 @@ int main(int argc, char **argv)
exit(1);
}
if (argc < 2)
err_if(!freopen(NULL, "wb", stdout));
// if (argc < 2)
// err_if(!freopen(NULL, "wb", stdout));
w = DEFAULT_WIDTH;
h = DEFAULT_HEIGHT;