ffmpeg: fix dependencies
[oi-userland.git] / components / library / libofa / patches / 02.example-open.patch
blob43e23c7015fb753acc40e6a2aa3b52dd33321e1c
1 Description: fix an issue.
2 Author: Lukáš Lalinský <lalinsky@gmail.com>
3 Last-Update: 2006-08-22
4 Index: libofa-0.9.3/examples/wavefile.cpp
5 ===================================================================
6 --- libofa-0.9.3.orig/examples/wavefile.cpp
7 +++ libofa-0.9.3/examples/wavefile.cpp
8 @@ -42,7 +42,11 @@ AudioData* loadWaveFile(char *file) {
9 int srate = 0;
10 int channels = 0;
12 - int fd = open(file, O_RDONLY | 0x8000);
13 +#ifdef WIN32
14 + int fd = open(file, O_RDONLY | O_BINARY);
15 +#else
16 + int fd = open(file, O_RDONLY);
17 +#endif
18 if (fd == -1)
19 return 0;