You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-30 22:24:04 +02:00
avfilter/af_afftdn: fix pts handling when timebase and 1/samplerate differ
This commit is contained in:
@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user