mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 00:32:31 +00:00
avfilter/af_amix: do not leave unset PTS for frames after first stream is over
First stream is used only to get number of samples to put into each output frame.
This commit is contained in:
parent
a489b6a8e3
commit
17b44f759e
@ -309,6 +309,8 @@ static int output_frame(AVFilterLink *outlink)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
s->next_pts = frame_list_next_pts(s->frame_list);
|
||||
} else {
|
||||
/* first input closed: use the available samples */
|
||||
nb_samples = INT_MAX;
|
||||
@ -324,7 +326,6 @@ static int output_frame(AVFilterLink *outlink)
|
||||
}
|
||||
}
|
||||
|
||||
s->next_pts = frame_list_next_pts(s->frame_list);
|
||||
frame_list_remove_samples(s->frame_list, nb_samples);
|
||||
|
||||
calculate_scales(s, nb_samples);
|
||||
|
Loading…
Reference in New Issue
Block a user