X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmodules%2Fvmfx%2Fproducer_pgm.c;h=c0b342c2920623c9907ed34dd949ae12e108e77b;hb=facc6328e46eb0c973c6293390a14258abf071d4;hp=5a74fa036ec896d450b9ae0f97f41d652102dd5c;hpb=a73c4ea1eecc6373446b00338e3c751d9fb56746;p=mlt diff --git a/src/modules/vmfx/producer_pgm.c b/src/modules/vmfx/producer_pgm.c index 5a74fa03..c0b342c2 100644 --- a/src/modules/vmfx/producer_pgm.c +++ b/src/modules/vmfx/producer_pgm.c @@ -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