[FFmpeg-devel] [PATCH] avfilter/avf_showcqt: improve pts handling

Muhammad Faiz mfcc64 at gmail.com
Mon Feb 15 10:49:04 CET 2016


On Sat, Feb 13, 2016 at 12:20 AM, Paul B Mahol <onemda at gmail.com> wrote:
>-            ret = plot_cqt(ctx);
>+            ret = plot_cqt(ctx, AV_NOPTS_VALUE);
it should not be set to AV_NOPTS_VALUE, but to previous pts + something

>-            ret = plot_cqt(ctx);
>+            ret = plot_cqt(ctx, insamples->pts + i);
av_rescale_q(insamples->pts, inlink->time_base, av_make_q(1,
inlink->sample_rate)) + i - s->fft_len/2

Thank's


More information about the ffmpeg-devel mailing list