FFMPEG -- fread

if (fread(picture_buf, 1, y_size * 3 / 2, in_file) <= 0) {
    
     
			printf("Failed to read raw data! \n");
			return false;
		}

fread函数,从文件流中读取数据,如果不成功或读到文件末尾返回 0

猜你喜欢

转载自blog.csdn.net/hwx802746/article/details/113744426