mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 18:49:58 +00:00
avfilter/af_anlmdn: fix pts handling when timebase and 1/samplerate differ
This commit is contained in:
parent
0a17a30150
commit
b66acf4a34
@ -298,7 +298,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
|
|||||||
out->nb_samples = FFMIN(s->eof_left, s->offset);
|
out->nb_samples = FFMIN(s->eof_left, s->offset);
|
||||||
s->eof_left -= out->nb_samples;
|
s->eof_left -= out->nb_samples;
|
||||||
}
|
}
|
||||||
s->pts += s->offset;
|
s->pts += av_rescale_q(s->offset, (AVRational){1, outlink->sample_rate}, outlink->time_base);
|
||||||
|
|
||||||
return ff_filter_frame(outlink, out);
|
return ff_filter_frame(outlink, out);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user