diff options
author | konablend <[email protected]> | 2009-06-06 23:04:51 +0000 |
---|---|---|
committer | konablend <[email protected]> | 2009-06-06 23:04:51 +0000 |
commit | 29a5aad80b27a47bec2dcb69bd97f06d38c64602 (patch) | |
tree | 371b3adde17bcfa96d78b8f62d78fb1f0245b79d /libhb | |
parent | 87313a3e48bf2349cbb5be3e89db9b203aae812f (diff) |
- mingw fixes to use fopen() with 'b' flag.
- include pthread.h for pthread_win32 attach/detach decls.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2495 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/hb.c | 2 | ||||
-rw-r--r-- | libhb/scan.c | 2 | ||||
-rw-r--r-- | libhb/stream.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/libhb/hb.c b/libhb/hb.c index 7d140bdfb..26826ecdd 100644 --- a/libhb/hb.c +++ b/libhb/hb.c @@ -443,7 +443,7 @@ void hb_get_preview( hb_handle_t * h, hb_title_t * title, int picture, hb_get_tempory_filename( h, filename, "%" PRIxPTR "%d", (intptr_t) title, picture ); - file = fopen( filename, "r" ); + file = fopen( filename, "rb" ); if( !file ) { hb_log( "hb_get_preview: fopen failed" ); diff --git a/libhb/scan.c b/libhb/scan.c index 6ff83a872..1d62297f4 100644 --- a/libhb/scan.c +++ b/libhb/scan.c @@ -600,7 +600,7 @@ static int DecodePreviews( hb_scan_t * data, hb_title_t * title ) hb_get_tempory_filename( data->h, filename, "%" PRIxPTR "%d", (intptr_t)title, i ); - file_preview = fopen( filename, "w" ); + file_preview = fopen( filename, "wb" ); if( file_preview ) { fwrite( vid_buf->data, title->width * title->height * 3 / 2, diff --git a/libhb/stream.c b/libhb/stream.c index c98f901db..92907e1ef 100644 --- a/libhb/stream.c +++ b/libhb/stream.c @@ -470,7 +470,7 @@ static int audio_inactive( hb_stream_t *stream, int indx ) **********************************************************************/ hb_stream_t * hb_stream_open( char *path, hb_title_t *title ) { - FILE *f = fopen( path, "r" ); + FILE *f = fopen( path, "rb" ); if ( f == NULL ) { hb_log( "hb_stream_open: open %s failed", path ); |