forked from theluyuan/avs2bdnxml
123
This commit is contained in:
parent
d53d82d953
commit
97a379a560
@ -645,10 +645,10 @@ void print_usage ()
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
extern char *rindex(const char *s, int c);
|
extern char *strrchr(const char *s, int c);
|
||||||
int is_extension(char *filename, char *check_ext)
|
int is_extension(char *filename, char *check_ext)
|
||||||
{
|
{
|
||||||
char *ext = rindex(filename, '.');
|
char *ext = strrchr(filename, '.');
|
||||||
|
|
||||||
if (ext == NULL)
|
if (ext == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
@ -1149,7 +1149,7 @@ int main (int argc, char *argv[])
|
|||||||
/* Progress indicator */
|
/* Progress indicator */
|
||||||
if (i % (count_frames / progress_step) == 0)
|
if (i % (count_frames / progress_step) == 0)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "\rProgress: %d/%d - Lines: %d", i - init_frame, count_frames, num_of_events);
|
fprintf(stderr, "Progress: %d/%d - Lines: %d\r\n", i - init_frame, count_frames, num_of_events);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If we are outside any lines, check for empty frames first */
|
/* If we are outside any lines, check for empty frames first */
|
||||||
|
Loading…
Reference in New Issue
Block a user