if ( extension != NULL && strcmp( extension, ".pgm" ) == 0 )
{
// Open PGM
- FILE *f = fopen( resource, "r" );
+ FILE *f = fopen( resource, "rb" );
if ( f != NULL )
{
// Load from PGM
if ( extension != NULL && strcmp( extension, ".pgm" ) == 0 )
{
// Open PGM
- FILE *f = fopen( resource, "r" );
+ FILE *f = fopen( resource, "rb" );
if ( f != NULL )
{
// Load from PGM
output = mlt_properties_get_data( properties, "output_file", NULL );
if ( output == NULL )
{
- output = fopen( target, "w" );
+ output = fopen( target, "wb" );
if ( output != NULL )
mlt_properties_set_data( properties, "output_file", output, 0, ( mlt_destructor )fclose, 0 );
}
{
uint8_t *input = NULL;
int error = 0;
- FILE *f = fopen( name, "r" );
+ FILE *f = fopen( name, "rb" );
char data[ 512 ];
// Initialise
static int producer_open( mlt_producer this, mlt_profile profile, char *file )
{
// FILE pointer for file
- FILE *input = fopen( file, "r" );
+ FILE *input = fopen( file, "rb" );
// Error code to return
int error = input == NULL;