解析range_count
This commit is contained in:
parent
5e7d79a690
commit
08ab839f4b
@ -869,7 +869,7 @@ int main (int argc, char *argv[])
|
||||
event_list_t *events = event_list_new();
|
||||
event_t *event;
|
||||
FILE *fh;
|
||||
int range_frame_count = 0;
|
||||
int range_frame_count = 0, range_count = 0;
|
||||
char range_count_str[50], range_frame_count_str[50];
|
||||
char range_start_str[50], range_end_str[50];
|
||||
int before_range_frame_count = 0;
|
||||
@ -1113,6 +1113,13 @@ int main (int argc, char *argv[])
|
||||
if (fscanf(ranges_fp, "%s %s", range_count_str, range_frame_count_str) != EOF) {
|
||||
fprintf(stderr, "%s\n", range_frame_count_str);
|
||||
range_frame_count = parse_int(range_frame_count_str, "range_frame_count", NULL);
|
||||
range_count = parse_int(range_count_str, "range_count", NULL);
|
||||
}
|
||||
|
||||
if (range_count <= 0) {
|
||||
fprintf(stderr, "Error: Error reading range_count.\n");
|
||||
fclose(ranges_fp);
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (range_frame_count <= 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user