Guest User

Untitled

a guest
Jun 20th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. Index: libhb/hb.c
  2. ===================================================================
  3. --- libhb/hb.c (revision 2480)
  4. +++ libhb/hb.c (working copy)
  5. @@ -436,7 +436,7 @@
  6. hb_get_tempory_filename( h, filename, "%" PRIxPTR "%d",
  7. (intptr_t) title, picture );
  8.  
  9. - file = fopen( filename, "r" );
  10. + file = fopen( filename, "rb" );
  11. if( !file )
  12. {
  13. hb_log( "hb_get_preview: fopen failed" );
  14. Index: libhb/stream.c
  15. ===================================================================
  16. --- libhb/stream.c (revision 2480)
  17. +++ libhb/stream.c (working copy)
  18. @@ -470,7 +470,7 @@
  19. **********************************************************************/
  20. hb_stream_t * hb_stream_open( char *path, hb_title_t *title )
  21. {
  22. - FILE *f = fopen( path, "r" );
  23. + FILE *f = fopen( path, "rb" );
  24. if ( f == NULL )
  25. {
  26. hb_log( "hb_stream_open: open %s failed", path );
  27. Index: libhb/scan.c
  28. ===================================================================
  29. --- libhb/scan.c (revision 2480)
  30. +++ libhb/scan.c (working copy)
  31. @@ -600,7 +600,7 @@
  32. hb_get_tempory_filename( data->h, filename, "%" PRIxPTR "%d",
  33. (intptr_t)title, i );
  34.  
  35. - file_preview = fopen( filename, "w" );
  36. + file_preview = fopen( filename, "wb" );
  37. if( file_preview )
  38. {
  39. fwrite( vid_buf->data, title->width * title->height * 3 / 2,
Add Comment
Please, Sign In to add comment