diff options
author | Paul B Mahol <onemda@gmail.com> | 2023-07-05 23:02:08 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2023-07-05 23:02:08 +0200 |
commit | 3bbb1c023b0e00324c133a86ebb0a955dd8dea0f (patch) | |
tree | cd439f2961204a19edf5aa19c12d2e52e8044e08 | |
parent | 0cdfe46f4e2d2152632e7588fd544d8d13f6fcc2 (diff) | |
download | ffmpeg-3bbb1c023b0e00324c133a86ebb0a955dd8dea0f.tar.gz |
avfilter/avf_showcwt: fix offset to take into initial delay
Syncs audio with video.
-rw-r--r-- | libavfilter/avf_showcwt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/avf_showcwt.c b/libavfilter/avf_showcwt.c index cc8740fb82..0ee4414ea2 100644 --- a/libavfilter/avf_showcwt.c +++ b/libavfilter/avf_showcwt.c @@ -868,7 +868,7 @@ static int output_frame(AVFilterContext *ctx) if (s->slide != SLIDE_FRAME || s->new_frame == 1) { int64_t pts_offset = s->new_frame ? 0LL : av_rescale(s->ihop_index, s->hop_size, s->ihop_size); - pts_offset = av_rescale_q(pts_offset, av_make_q(1, inlink->sample_rate), inlink->time_base); + pts_offset = av_rescale_q(pts_offset - 16384LL, av_make_q(1, inlink->sample_rate), inlink->time_base); s->outpicref->pts = av_rescale_q(s->in_pts + pts_offset, inlink->time_base, outlink->time_base); s->outpicref->duration = 1; } |