This commit is contained in:
theluyuan 2024-03-28 20:35:26 +08:00
parent d53d82d953
commit 97a379a560

View File

@ -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 */