]> git.sesse.net Git - mlt/blobdiff - src/modules/vmfx/producer_pgm.c
Fix reading binary files on Windows.
[mlt] / src / modules / vmfx / producer_pgm.c
index 5a74fa036ec896d450b9ae0f97f41d652102dd5c..c0b342c2920623c9907ed34dd949ae12e108e77b 100644 (file)
@@ -66,7 +66,7 @@ static int read_pgm( char *name, uint8_t **image, int *width, int *height, int *
 {
        uint8_t *input = NULL;
        int error = 0;
-       FILE *f = fopen( name, "r" );
+       FILE *f = fopen( name, "rb" );
        char data[ 512 ];
 
        // Initialise