Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: libhb/hb.c
- ===================================================================
- --- libhb/hb.c (revision 2480)
- +++ libhb/hb.c (working copy)
- @@ -436,7 +436,7 @@
- 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" );
- Index: libhb/stream.c
- ===================================================================
- --- libhb/stream.c (revision 2480)
- +++ libhb/stream.c (working copy)
- @@ -470,7 +470,7 @@
- **********************************************************************/
- 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 );
- Index: libhb/scan.c
- ===================================================================
- --- libhb/scan.c (revision 2480)
- +++ libhb/scan.c (working copy)
- @@ -600,7 +600,7 @@
- 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,
Add Comment
Please, Sign In to add comment