This commit is contained in:
猪小乐 2023-06-16 03:56:07 +00:00
parent 84b7b414f7
commit 80784de656

View File

@ -1131,6 +1131,10 @@ int main (int argc, char *argv[])
{ {
have_line = 0; have_line = 0;
if (pal != NULL) {
free(pal);
pal = NULL;
}
init_frame = parse_int(range_start_str, "range_start", NULL); init_frame = parse_int(range_start_str, "range_start", NULL);
last_frame = parse_int(range_end_str, "range_end", NULL); last_frame = parse_int(range_end_str, "range_end", NULL);
@ -1186,7 +1190,7 @@ int main (int argc, char *argv[])
/* Not a dup, write end-of-line, if we had a line before */ /* Not a dup, write end-of-line, if we had a line before */
if (have_line) if (have_line)
{ {
end_frame = i - 1; end_frame = i;
have_line = 0; have_line = 0;
if (sup_output) if (sup_output)
@ -1267,7 +1271,7 @@ int main (int argc, char *argv[])
if (have_line) if (have_line)
{ {
auto_cut = 1; auto_cut = 1;
end_frame = i - 1; end_frame = i;
if (sup_output) if (sup_output)
{ {