search for: read_sane_extended

Displaying 1 result from an estimated 1 matches for "read_sane_extended".

2012 Dec 27
1
[patch] patch for fskip_ahead()
....h> /* for FILE etc. */ #include <stdlib.h> /* for malloc */ #include <string.h> /* for strcmp(), strerror() */ +#include <sys/stat.h> #include "FLAC/all.h" #include "share/alloc.h" #include "share/grabbag.h" @@ -2799,29 +2800,18 @@ FLAC__bool read_sane_extended(FILE *f, FLAC__uint32 *val, const char *fn) FLAC__bool fskip_ahead(FILE *f, FLAC__uint64 offset) { static unsigned char dump[8192]; + struct stat stb; -#ifdef _MSC_VER - if(f == stdin) { - /* MS' stdio impl can't even seek forward on stdin, have to use pure non-fseek() version: */ -...