mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-23 07:42:51 +00:00
avfilter/af_afftdn: fix pts handling when timebase and 1/samplerate differ
This commit is contained in:
parent
c588a0f528
commit
115537f487
@ -1260,7 +1260,7 @@ static int output_frame(AVFilterLink *inlink)
|
|||||||
ret = ff_filter_frame(outlink, out);
|
ret = ff_filter_frame(outlink, out);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto end;
|
goto end;
|
||||||
s->pts += s->sample_advance;
|
s->pts += av_rescale_q(s->sample_advance, (AVRational){1, outlink->sample_rate}, outlink->time_base);
|
||||||
end:
|
end:
|
||||||
av_frame_free(&in);
|
av_frame_free(&in);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user