open w/O_CREAT requires a third argument, mode!

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5882 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rfelker 2002-04-28 02:24:05 +00:00
parent 55b93890d6
commit 493d497996
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ static uint32_t preinit(const char *arg){
}
#else
vo_mpegpes_fd=open("grab.mpg",O_WRONLY|O_CREAT);
vo_mpegpes_fd=open("grab.mpg",O_WRONLY|O_CREAT,0666);
if(vo_mpegpes_fd<0){
perror("vo_mpegpes");
return -1;