mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avfilter/af_asetnsamples: fix pts handling when timebase and 1/samplerate differ
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
10012fa961
commit
33834be9c8
@ -116,7 +116,7 @@ static int push_samples(AVFilterLink *outlink)
|
||||
outsamples->pts = asns->next_out_pts;
|
||||
|
||||
if (asns->next_out_pts != AV_NOPTS_VALUE)
|
||||
asns->next_out_pts += nb_out_samples;
|
||||
asns->next_out_pts += av_rescale_q(nb_out_samples, (AVRational){1, outlink->sample_rate}, outlink->time_base);
|
||||
|
||||
ret = ff_filter_frame(outlink, outsamples);
|
||||
if (ret < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user