rem: if (fread(tmp, 1, 4, file) != 4) {
add: if (std::fread(tmp, 1, 4, file) != 4) {
context: static bool mpg123_detect_by_content(const char* filename, struct frame* frp) {	FILE *file;	uint8_t tmp[4];	uint32_t head;	unsigned char *buf;	int in_buf, i;	if((file = fopen(filename, "rb")) == NULL) {	  return false;	}	if (fread(tmp, 1, 4, file) != 4)		goto done;	buf = new unsigned char [1024];	head = convert_to_header(tmp);	while(!mpg123_head_check(head)) {		/*		 * The mpeg-stream can start anywhere in the file,		 * so we check the entire file		 */		/* Optimize this */		in_buf = fread(buf, 1, 1024, file);		if(in_buf == 0)		{			delete[] buf;			ecadebug->msg(ECA_DEBUG::info, "(audioio-mp3) Mp3 header not found!");			goto done;		}		for (i = 0; i < in_buf; i++)		{			head <<= 8;			head |= buf[i];			if(mpg123_head_check(head))			{				fseek(file, i+1-in_buf, SEEK_CUR);				break;			}		}	}	delete[] buf;	if (mpg123_decode_header(frp, head))	{		/*		 * We found something which looks like a MPEG-header.		 * We check the next frame too, to be sure		 */	        if (fseek(file, frp->framesize, SEEK_CUR) != 0) {			goto done;		}		if (fread(tmp, 1, 4, file) != 4) {			goto done;		}		head = convert_to_header(tmp);		if (mpg123_head_check(head) && mpg123_decode_header(frp, head))		{			fclose(file);			return true;		}	} done:	fclose(file);	ecadebug->msg(ECA_DEBUG::info, "(audioio-mp3) Valid mp3 header not found!");	return false;}