I have a video file and want to read it and show the result in anathor file.
FILE *fp1,*fp2;
fp1=fopen("FOOTBALL_352x288_30_orig_01.yuv","rb");
fp2=fopen("FOOTBALL_352x288_30_copy_01.yuv","wb");
while (feof(fp1))
{
fread(1,sizeof(int),fp1);
fwrite(fp1,sizeof(int),fp2);
}
fclose(fp1);
fclose(fp2);