pls
This commit is contained in:
+4
-3
@@ -79,20 +79,21 @@ ppm_save(const unsigned int* buf, const PPM img)
|
||||
}
|
||||
printf("Starting encode...\n");
|
||||
FILE* fptr;
|
||||
printf("test 1\n");
|
||||
|
||||
if (img.fmt == '3')
|
||||
{
|
||||
fptr = fopen(img.name, "w");
|
||||
}
|
||||
printf("test 2\n");
|
||||
|
||||
if (img.fmt == '6')
|
||||
{
|
||||
fptr = fopen(img.name, "wb");
|
||||
}
|
||||
printf("test 3\n");
|
||||
|
||||
if (!fptr)
|
||||
{
|
||||
|
||||
printf("test 3\n");
|
||||
free(dst_buf);
|
||||
return 10;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user