修正帧数
This commit is contained in:
parent
ebe53e6736
commit
5e7d79a690
18
avs2bdnxml.c
18
avs2bdnxml.c
@ -1128,18 +1128,16 @@ int main (int argc, char *argv[])
|
||||
|
||||
while (fscanf(ranges_fp, "%s %s", range_start_str, range_end_str) != EOF)
|
||||
{
|
||||
int range_start = parse_int(range_start_str, "range_start", NULL);
|
||||
int range_end = parse_int(range_end_str, "range_end", NULL);
|
||||
init_frame = parse_int(range_start_str, "range_start", NULL);
|
||||
last_frame = parse_int(range_end_str, "range_end", NULL);
|
||||
|
||||
init_frame = range_start;
|
||||
count_frames = range_end - range_start + 1;
|
||||
if (last_frame > frames)
|
||||
{
|
||||
last_frame = frames;
|
||||
}
|
||||
|
||||
/* Get frame number */
|
||||
if (count_frames + init_frame > frames)
|
||||
{
|
||||
count_frames = frames - init_frame;
|
||||
}
|
||||
last_frame = count_frames + init_frame;
|
||||
count_frames = last_frame - init_frame + 1;
|
||||
|
||||
/* No frames mean nothing to do */
|
||||
if (count_frames < 1)
|
||||
@ -1160,7 +1158,7 @@ int main (int argc, char *argv[])
|
||||
}
|
||||
|
||||
/* Process frames */
|
||||
for (i = init_frame; i < last_frame; i++)
|
||||
for (i = init_frame; i <= last_frame; i++)
|
||||
{
|
||||
if (read_frame_avis(in_img, avis_hnd, i))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user