Changeset View
Changeset View
Standalone View
Standalone View
source/blender/imbuf/intern/indexer.c
| Show First 20 Lines • Show All 164 Lines • ▼ Show 20 Lines | |||||
| struct anim_index *IMB_indexer_open(const char *name) | struct anim_index *IMB_indexer_open(const char *name) | ||||
| { | { | ||||
| char header[13]; | char header[13]; | ||||
| struct anim_index *idx; | struct anim_index *idx; | ||||
| FILE *fp = BLI_fopen(name, "rb"); | FILE *fp = BLI_fopen(name, "rb"); | ||||
| int i; | int i; | ||||
| if (!fp) { | if (!fp) { | ||||
| fprintf(stderr, "Couldn't open indexer file: %s\n", name); | |||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| if (fread(header, 12, 1, fp) != 1) { | if (fread(header, 12, 1, fp) != 1) { | ||||
| fprintf(stderr, "Couldn't read indexer file: %s\n", name); | fprintf(stderr, "Couldn't read indexer file: %s\n", name); | ||||
| fclose(fp); | fclose(fp); | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,323 Lines • Show Last 20 Lines | |||||